pi

EARENDIL INC.·EarendilWorks.pi

AI coding assistant with read, bash, edit, write tools

Pi is a minimal terminal coding harness. Adapt pi to your workflows, not the other way around, without having to fork and modify pi internals. Extend it with TypeScript Extensions, Skills, Prompt Templates, and Themes. Put your extensions, skills, prompt templates, and themes in Pi Packages and share them with others via npm or git. Pi ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask pi to build what you want or install a third party pi package that matches your workflow. Pi runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps. See openclaw/openclaw for a real-world SDK integration.

winget install --id EarendilWorks.pi --exact --source winget

Latest 1.7.0·November 27, 2026

Release Notes

New Features

  • Terminal session resume: Compatible terminals can reopen the current pi session after a restart with its original profile, tool restrictions, and instructions.
  • Image generation in codemode: Generate images with Radius, or set the aspect ratio and size when using OpenRouter image models.
  • GitHub Copilot prompt caching: Changing the thinking level preserves the prompt cache on supported Claude 5.x and GPT-6 models. Supported Claude 5.x models also keep the cache when tools change, and Copilot Claude models support cache warming. Breaking Changes
  • Removed telemetry reporting from pi for new installs and updates (/api/report-install), the enableInstallTelemetry setting (SettingsManager.getEnableInstallTelemetry() / setEnableInstallTelemetry()), and PI_TELEMETRY Added
  • Added program resume through the Program Resume Protocol (OSC 7577): in terminals that set OSC7577_TOKEN, interactive mode reports pi --session for the current session, so the terminal can bring it back after it restarts. Pi removes the token from the environment of every process it starts. See Terminal setup
  • Added optional { aspectRatio, size } as the third argument to codemode models.generateImages()
  • Added --agent-dir , the command-line form of PI_CODING_AGENT_DIR. The resume command pi prints on exit and reports through OSC 7577 now includes it when the config directory is not ~/.pi/agent. Without it, a session started with PI_CODING_AGENT_DIR came back with the default directory's settings and auth: a terminal resumes the command without the environment pi was started in. This is for setups that keep a separate pi profile per project, for example a shell function that sets PI_CODING_AGENT_DIR for one directory tree. Terminals that resume programs, such as Rex, need a rule that trusts the longer command; see Terminal setup
  • The OSC 7577 resume command now repeats the restriction and resource flags pi was started with (--tools, --no-extensions, -e, --skill, --system-prompt, and similar), as typed, so a terminal cannot resume a session with other tools or instructions, possibly more access, than it had. The command printed on exit is unchanged. A terminal rule must trust each flag combination; see Terminal setup
  • Added Radius image generation to codemode. Radius image and classifier models are now listed in the built-in catalog as well as through provider discovery Changed
  • The default model for cloudflare-workers-ai and cloudflare-ai-gateway is now @cf/zai-org/glm-5.3, because Cloudflare deprecated Workers AI Kimi K2.6 and K2.7 Code
  • Changed the ant-ling default model from the retired Ring-2.6-1T to Ling-3.1-flash. Existing models.json files can keep thinkingFormat: "ant-ling" as a deprecated alias for "deepseek" (#11800 by @lvisei)
  • Replaced the retired qwen4-max-preview with qwen4-max on Qwen Token Plan Individual
  • Preserved the GitHub Copilot prompt cache when changing thinking levels on supported Claude 5.x and GPT-6 models or changing tools on supported Claude 5.x models. Copilot Claude models now support cache warming, and GPT-5.3 Codex and MAI-Code receive mid-conversation system messages where they take effect (#12316) Fixed
  • Fixed /llama "Download model" downloading the typed text instead of the highlighted result when the query looked like owner/repository and the user had moved the selection with the arrow keys (#12465)
  • Fixed key hints that named the wrong keybinding or a hardcoded key: the extension editor and session rename now name tui.input.submit, /hotkeys names tui.select.cancel for cancelling autocomplete, and the settings submenu, /config selector, session selector and fullscreen copy setting follow remapped keys
  • Fixed a console Ctrl+Break on Windows ending pi without restoring the terminal, which left the shell in the alternate screen with mouse reports typed into the prompt. A child process in the same console can send Ctrl+Break too. pi now shuts down normally on it (#12133)
  • Fixed print, JSON, and RPC modes not reporting an invalid models.json, so a typo such as "contextWindow": "32000" showed up only as Model "..." not found or No API key found. createAgentSessionServices() now returns the error as a warning in diagnostics, so every mode and SDK runtimes report it; interactive mode shows it as a warning instead of an error, as reported in #12522 (#12523 by @acmerfight)
  • Fixed app.message.followUp (Alt+Enter) ignoring an open autocomplete menu and queuing the half-typed text. It now applies the selected suggestion like Enter: a completed command name is queued, and other completions are inserted without queuing
  • Fixed running ! commands showing the wrong cancel shortcut. The hint now names the configured app.interrupt key (#12518 by @acmerfight)
  • Fixed !! commands counting toward the context estimate even though the model never sees them. Large outputs no longer trigger early compaction or crowd out recent history (#12513)
  • Fixed Kitty images disappearing in Konsole and regular mode clearing the screen and scrollback when an appended image extended past the bottom of the screen (#12548)
  • Fixed Amazon Bedrock Kimi K3.1 and GLM 5.3 ignoring the selected thinking level (#12462). Kimi K3 and K3.1 also no longer send earlier reasoning back to Bedrock, which could make later turns fail
  • Fixed GitHub Copilot models using openai-completions losing their reasoning state between turns (#12418)
  • Fixed codemode image generation reporting success for failed OpenRouter responses. Image and classifier usage now includes reasoning tokens when reported; image usage distinguishes image output tokens, and OpenRouter costs use the reported total or the model's image output rate when estimating

Installer type: zip

x64—E98BB945FB7F6917A4BEA1956759CE9FAF07CF6BDD8C42BFEF521ECCF2276A17
arm64—603D4EB1B85A233BA395AA0166C53FC219DF56680A85332F0BDBFEF0C98967F4

Details

Homepage
https://github.com/earendil-works/pi
License
MIT
Publisher
EARENDIL INC.
Support
https://github.com/earendil-works/pi/issues
Copyright
Copyright (c) 2026 Mario Zechner
Moniker
pi

Tags

agentagenticaichatbotcodecodinglarge-language-modelllmprogramming

Older versions (95)

1.6.1
x64—DBB007C8C50782DE1642382FED777C60252AAB080F36EEF7823324C574C1F3E4
arm64—1D573E8B02F92D3CC3D386481710144F9091A93775D211663919DA9ED4C9D31D
1.6.0
x64—F5DEFB6C403EE698F5B3F8886DB473E55B78AAC670A8CE03620A47F5F0AEC57C
arm64—56433D392E1BAECF9F1692785A3BF171C125B415A29DD36097D02BACA98BC9EB
1.5.2
x64—E6ADB8CB8C84ECA14391AD24B363DE9D2BE98A89CA3BA3FDEE1FA4DE32B7F2E8
arm64—E83404BC5A6003AC950683EDD9B6CF499DAC91EC890D8439A8C32528DE534A77
1.5.1
x64—EE0C0D971C3D3DB1A310A28113281D440B643008EA9842F74C33124E18E2810C
arm64—2B6988CE6C1B77C1878A68CE92B3B8137F3E5D4DDDB95EE8E1CF374846B84339
1.5.0
x64—12D58A70E80B16BA9F764950B7A42BDEB07959495C0DB68396CF2988C0B71AF3
arm64—9843E4241B6935A85D49B704562CDCB6FDC78A8EC643410F32B3876A87414283
1.4.0
x64—0F7256EA8BDAC3AF20012B94FDC1252A31CC6DC0D2F9B9EB539555D22E3E321B
arm64—17AB17EE0E9088545C7DFA56D29490C45BD915425610B0DB0CD937632F2DF714
1.3.0
x64—DAF0EF45FD08F13DBB64C62D559E332C2D3D3087F8AE022EC5A1B9B655B59894
arm64—A349536D76BD83842F7B28DB73A6AB89C68015731110ABA299E57233539A0DED
1.2.0
x64—BD272B508657AD8D0AC6176E7751913C848A89CFB8CBE21FF319941E6CA140BE
arm64—54F8C4138D07F0D96B1E054E075CB826A86364EE0A000DD71E844A00000F3C0E
1.1.0
x64—98E3A14E13685A4836A10865BD7887BDC2FCFA1086120313420DC935A401D3D6
arm64—3DBBFF7FAE5AA6DFD0224752AF2480BE66463BF67A11BBBDF050956BA1C170A3
1.0.4
x64—6BDBFB7BAC252EEA36A0095E4B741C9D5784D5BA99146E2D76E9246DEE409B58
arm64—CA8A2F2687D2097D3F93EAD151E943315A262CF499ABE6635C09E293CCED164D
1.0.3
x64—6CDDC3D11210539FAA7BA0188504813F2F3AE6D8F93A161D4145CC61A8BDD5DE
arm64—AC29F24C02342886FA2D3C1C4629AE4E40D530357535B6A60B5C8ECAF803A11F
1.0.2
x64—37A2EE3C5222A73EFC78B49F571748F11A74F4DBE160DA3030A404DA71F464E7
arm64—4EB7C89F12C523D28069FED66F2CEB2466F909E41C87A6367A52728CEC938B15
1.0.1
x64—5F95370368317F7A1520BB0838B12865C9FE9D0D60898BD1C61E986D6A11B75D
arm64—D1EBBA8681F8A4B0D4219E496210BCFC412E6EF00F875A55257BD7CB84973E13
1.0.0
x64—F7DBD39814BF6763F01E7F688AD089615DE1D0EB55FC8915A49ACDC2088F4404
arm64—122D3A1825EAC4AA17081C769188C1D058FEBF579A9407091AE829626997EA96
0.99.2
x64—6F0BD9869D5CF45D5ADDE79EBEDB54357E0C26CB4C64BD4A256F7AE548995F22
arm64—ED7B4CEAE0CF0D3B9EC160AF8501F9EEC9478769F382B969A9CCBD0E9A4479FA
0.99.1
x64—7E5C2971C0BE6019A8B89EDC5E3F0EFB4CBDEB0AC236FD3A3307C1F62057528F
arm64—A16CFD489DBBF9D6C60033CAE3D15B035E7B4A5C1260F833F84C4B37F58706FC
0.87.1
x64—AAB2BA67BAF8FF97A52D05B62D88E9E65A840C6EA8FA1029A28D62D210D4E5FC
arm64—2E0D544999A765018EE5C2FF1A8B1A7E0F5D5B6B1E00B32D8C025D6C1DBCC833
0.87.0
x64—C127CC14BFB3DC6BEE8460BB1C353E2DE5BA5743520EE740E41988F530D6E477
arm64—11B5D356EA1130009471751FEEF9D1714739147149C436C12632D4ADA41D4067
0.86.1
x64—B049D35A176FA5F4353D53CA90212320C031C9912B59EFE95BB7985D52ED1507
arm64—AEC024C11A63E42B2447BF72FB031F755294A9BABC0B03814DFF506CFDB9D485
0.86.0
x64—BBB55CB641B7CF888A43A5D953FAA715F12DE05C703893D9F8FF5F09F495051D
arm64—65E729E7A1F29D83BFB6EC57ACBD6C05136044E836F0C0B2E4C0250130997721
0.85.1
x64—002FA95B90D521245B9985D8F168CAEBC237AD56E7E30B319807DEE1B2E17E1C
arm64—B25E96FE64C9F41F75A924C0D36F395ABB98D6C6FEC0B78AAA0B86926F938BB4
0.85.0
x64—526085E0206ACB8E8F9997EFCD4E3654FB8A47A04318E09E7324ED5ABE549586
arm64—C10FB6F30F188B1EBA61608E0D33453456EE9805FF543FDD99BCAF85F2D949DF
0.84.4
x64—03B2318774F18721E959D9F8F3340A9F942E7AA516FB7030D3007A12A40A4A97
arm64—6B2726EFC34A9158AB06BF7B981F7BCCCF15DE9EA236A3F4EF7A894A78AA386E
0.84.3
x64—636A56F546C8BB1F2CB327964B7AFBD9302EFCD45C1704922A097CD8BD935FB9
arm64—D0F28A5BBEDDCAEE25FB7F4D8C70917D2C287D02B815614382AAC9AC55A8FE39
0.84.2
x64—741FC1AE1AFECB573AC2888E011188FF446B3940F4AABE1583F60BF55BE8A3D0
arm64—092E2B276E0066EFCB3D860465591C2E32EA48EE90395D34CEDA0D84D8FF4470
0.84.1
x64—20DD3A07CFE0BDC6919DFBC479C694798EC5EA88A9C60F6E12678CECAE1E5DFA
0.84.0
x64—CD91E3576D81E185B328371E463EE9F157746812E9D334324E88C3CE95B8AB6E
0.83.0
x64—7BDA7993553A0D556F1EED53D96DD4A83E183332475265FB87C79FF269BF357D
0.82.1
x64—BF097296FE05654BD1C212A47F86895899E5EDF5B706008E2223914FBF12A95B
0.82.0
x64—C7D3D6859E8E9352BA1CBA374F1A436FCB0E6737D05D93806569AE338C46D5B0
0.81.1
x64—6C46CCA1FA94234982E56DC60A453D4BC57DC45EFC2E16F97BBC6EACE7A7DE60
0.81.0
x64—D6664512684B8D1D644BF3695CCA01D52445F9CD8F8ED8841197B699ABB44766
0.80.10
x64—125BE42FD277E20E1BB5F366AA88FC32DEC924338D610C52B51C5B42B15B66E2
0.80.9
x64—6DBAAB39EFF1A0253092EE24953C4008B67C2B9BE08AF9C8A0A03150A2BC7E1F
0.80.8
x64—5E6F0914A833ED02A69B73E87821B98F1AFC010BEC4C7F7E02654F7584623FFC
0.80.7
x64—38AFE9451D4BC8B2465D6123A452ABB4713EB0B28C70E7917FC7060A8908A3DD
0.80.6
x64—0C6C572B1BD6A4F60798BF5CAF881016C594BD3EE7EA171ECAA0302B8D8CABAE
0.80.5
x64—0626CDCFDE9F296D443CE8640F84A03C2584ABE4C147A3615AF56C7C8032DF0D
0.80.3
x64—CA36266C726214FC351B9A6FCC5093CEE8AE73C0EA4CF8EC292B8FA646D334DF
0.80.2
x64—8064BA8196F2B0A90054CFA61CA7AE7236155C2FD5DE30835A4B61EC4929B4D2
0.80.1
x64—D444235E64AB1C5EE360A33EF0F0E3F002CB247B7C40D6DAED780EDCB59327EF
0.80.0
x64—011F9696C3F74FF3A8CAB9E7D1DCCBDEC44E747A4DDEE80651BD73F7BF38C7D5
0.79.10
x64—0BC8F6A0BD4A06C103DDC75A7AC0F6C3BFE1CCE80A5B4F0BE45A5292BF8B3FF1
0.79.9
x64—0743428B8A44CE3DE33F7D50F7FDAC0CAAECB0468F066808F1095B1A0CC99711
0.79.8
x64—B23EB0BF62E43DC500B2EAC7FC1F99587219C3043DF026014E3B92ABA97108C7
0.79.7
x64—9735057D5D4A213752ED98823405262C4D01F8A6DC9AB01C94DAAB14BD9EC254
0.79.6
x64—53F8E9EE863E83F0CFDDE4CE6F59CA5531A950B7A1478D48E5A7F8518F2F511D
0.79.5
x64—1AAD9F9C4E491120D83BF607767D37A3F51BCE5B14A8D76A89AA5B18763FC3C2
0.79.4
x64—D81659E6590D180B4BC61196733A64DBBCFA0CFBA0EC388039AC529CC9910BC4
0.79.3
x64—6F10C1344DA777208249DD69674FFAC3B0569F23B47EDCC7F9434340032E6823
0.79.2
x64—8C50EACDF38B53809EB1BA3B2FFD5CC4DB717B910B07036E04F5568BA272B422
0.79.1
x64—4CE3382DC57127E66167E9D210BA4474404968116971E556AA34058F27CC4B92
0.79.0
x64—84D46DD580671560A11236EF659C21BD18A3F94B881731396702CA28339C27D4
0.78.1
x64—A0BA95F567A9E04DEE2F38BDF755A0B418087FA17E29C114BCA31FB79847BCA5
0.78.0
x64—8718379BA6B2957FC2F5761165CC4BA2BC9E23579C40A2418D4950347B714FDE
0.77.0
x64—88D31D3FBFA1001C2D4811921C5B40FE3DAB96ACBFF068F8055C6F61584522D4
0.76.0
x64—37D1B5967E1ED699DF3A3DCD17BC41C70D14B426EFF387D43992CC8991F86772
0.75.5
x64—775BEC6CF05ED13CFB866CF13280C7878D018CCF9DB11B44902C80589166CBB5
0.75.4
x64—7DB4659F1F0F132F481C31EA2F32680BEE33C096F0FAA6B8F4668D43E6832A0A
0.75.3
x64—3F888A16CB4B871FC173FFFA01A4756B121AAA448A1DB6238E8F7FF97514E7E3
0.75.1
x64—1D72F36B895AB97414164C4021DED3D139A123AFA1239D7442A02BBBCA8FAEAD
0.75.0
x64—BA645A9A23F6635928742837828BD84C36032E546B05106182E68B3878687D0F
0.74.1
x64—583071E306DCF5C33D06C45DB1E0AF38741193D6AE0EEA9C3E846A329B2B1620
0.74.0
x64—0CBFB81E31B0FEA0A4F88F95D05F3A32A782A686D54771EDE30042AE42E9931F
0.73.1
x64—8BDB8E612A4B820F939A524652709B167AC5F1D4D1BBA25988A631BFF0BBE80B
0.73.0
x64—3581A94D72C28EA908EA51D37C31F10C25ED53920D7B6390333A5BFA5061D5DB
0.72.1
x64—ACA4FEC27B4ECC74DBC74FD8A49DB46EB9E876E809865DB0E585C87A78288330
0.72.0
x64—1FE5BB71DE3949F33AEB4832D8FCC1BE4DE3C85890294DC9B6815F2DF6789383
0.71.1
x64—04910D5CE4132DFC0AE2A78F75061F2F8A46A8E6916C0CB2E717F7C937FB1004
0.71.0
x64—432FA972BA088448B11CA891E1C3B7DDABA2909502375368120155FAA8A90A0C
0.70.6
x64—D8CE45273D6C35FBC6E7F689C37819323E7391ED2812136D8B5018865B86583F
0.70.5
x64—AFD8974F0861214B6717704ACA21DBCAEB633FBF06E2713B7B03C7BDA37B2246
0.70.3
x64—0458A633BB6186A04E4428F9CEB58B385411D7EE1E3603864EEF0F0622CA47E9
0.70.2
x64—310DDB4797EDF460E0023387EFDDBA01D8200B611DEF9C1AB36542F84C9722B4
0.70.1
x64—3C650490EDD9051B43726A37600212586222FB9F198135D163F160F6C0F1C4D1
0.70.0
x64—5CB685503D8C1745C559EB6A09841EF83736557B6B2B48E5648AD0794E548054
0.69.0
x64—53A61942EB01F021D79A0764B656C847057825997811F86A530EE66CDF7724FD
0.68.1
x64—27B5FEB462BE97D019B6BA161B0F29D03B0246B97299C440DA9A793C852D90A3
0.68.0
x64—6BB75BB7CF0178CFDBA691260ABEE3FC548ED8F801C5F57FA2979F85BBB7E3EC
0.67.68
x64—9B609E4AC4A83D204758B399A686A0254022CE46B32F554E15BBEEF72A0C8A59
0.67.67
x64—60279C35EFF67C78CB63A9F5AF2ECBE444CA4FCBADA2B7FA5A47455D5043B7E1
0.67.6
x64—C4799A559CE11B891ED677F7EDF7BB1D38A7ADAB935EFC91E29BA15EDDB1E055
0.67.5
x64—7061C6F548CB3038268B94178953E0D161F522CC117AE3F9DC8940CE8FAFFB7B
0.67.4
x64—B31A98D8B54F9E5442DE8C536C1846A2B7B621665320E45035A88A2DB95681A6
0.67.3
x64—0EB21D65D11331F384C2BBC213A916C0ACE1C11F0C8421E7EF10D18C0A0844B1
0.67.2
x64—03128CB6A6523E52155BBD3F1D60AF423EA0E8044DB085074E467F6343E8E7D5
0.67.1
x64—7FA922DAAA67EDADF7E9CFDDB7A4F3CE7D720323E9CC426F03FFE1316851828F
0.66.1
x64—A9D617217BEB93C6BDCFACD93FA5D721812CCA333B94AA8E140D97FBAE7F3F81
0.66.0
x64—A1E153776ADC254CB9CFB9A8001D958754FE4E5508AA69A00DA00F2797BDA347
0.65.2
x64—E49ACBC1C704D3C81470FD35153C0287E5318EA4C9E57ED94991D891CCE17649
0.65.1
x64—A42C9C23342579F2FE78837A9471B73D6D0A0B6C4231A3214FCC272AF2A65E3A
0.65.0
x64—E2AF02F2BA2FFC94EB73ED0C545DD897C8F0CA4645A091498D612FFF0C367D70
0.64.0
x64—36B6576BB4E7051112ED5AF952536DD26222F3C9E3F27F3921910F26AFDC040F
0.63.2
x64—DF1AF1D71967A5655D2A1A548F6ADCEEF3C77A3D0ED3511EDA95C2A5BDE7AC49
0.63.1
x64—37E0329BA67AA7AF08759CA5B634FF5492D342A4375309CC3CBFC74A0E70212F