Free, open-source AI coding agent for VS Code Bug fixed. Phew.
Click an error, and Phew finds the cause, fixes it, runs your tests, and shows each change for you to keep or undo. With the model you choose, in the cloud or on your computer.
- Any model
- Local or cloud
- Agents in parallel
- Free
Free and open source under Apache 2.0, with no telemetry. Version 1.4.1, for VS Code 1.95 or newer, also on the Visual Studio Marketplace.
The login tests fail after my refactor. Fix them.
- Read
src/auth.ts -
$ npm test✗ 3 failing: login times out - Edit
src/auth.ts+12−3 -
$ npm test✓ 42 passing
Done and checked in 38 s
src/auth.ts +12 −3
Why Phew
-
Any model, your keys
GitHub Copilot without a key, OpenAI, Gemini, Mistral, OpenRouter, your company gateway, or a local model. Each chat keeps its own model, and a fallback takes over when a quota runs out.
Use your own key -
Agents in parallel
Run chats side by side, agents on their own branches in worktrees, and subagents that research in parallel. The list shows which one needs you, failed, or is done.
Run agents in parallel -
Every change in your hands
Keep or undo each change in the editor, restore any checkpoint, and approve risky commands. Files with secrets never reach the model.
Stay safe -
Free and private
Open source under Apache 2.0, no account, no telemetry. With a local model, your code never leaves your computer.
Start for free
- Open source
- Signed releases
- No telemetry
- Linux, macOS, Windows
- VS Code, VSCodium, Cursor, Windsurf
What it does
Pick a topic to see it in the editor.
Click an error, a failed command, or failing tests. Phew finds the cause, fixes it, and runs your checks again.
And the everyday things
- Review in the editor
- Every change has Keep and Undo right in the file.
- Undo anything
- Each request is a checkpoint. Restore it, even after a restart.
- Find, fork, and edit
- Search all chats by their messages, fork any message to try another way, or edit it and send again.
- Parallel agents
- Run chats side by side, or agents on their own branches in worktrees, each with its own model. The list shows which one needs you, failed, or is done.
- Subagents
- The agent sends research tasks to helpers that read in parallel, each with the model it needs, and report back.
- Knows your project
- Each chat starts with the stack, the commands, and the layout. Rules come with the files they are for, and memory checks itself.
- MCP and Agent Skills
- Use your MCP servers, with OAuth sign-in, and
SKILL.mdskills. - Autocomplete
- Inline completions and the next edit, with any model.
- Commits your way
- Commit messages with your style, sign-off, and signing.
- Never stuck
- When the model goes quiet, Retry sends the request again. When its quota runs out, your fallback model goes on with the task.
Start in a minute
-
Install Phew
One click opens VS Code with Phew ready to install. You can also search for Phew in the Extensions view.
-
Connect a model
Open the Phew view. It shows what is ready on your computer, such as GitHub Copilot or a key in your environment, and free ways to start. Pick one, and Connect and test checks that it works.
-
Ask, or click Phew it!
Describe a change in the chat, or put the cursor on an error and press Ctrl+Alt+. (Cmd+Alt+. on macOS).
On VSCodium or another editor that uses Open VSX, install Phew from Open VSX. Every release also has the .vsix file on GitHub.
Bring any model
Use the account you already have, sign in through your company with short-lived tokens, or keep everything on your computer with a local model. Phew shows what is ready on your computer when you start. Each chat keeps its own model, so two keys of one provider can work side by side.
- GitHub Copilot, without a key
- OpenAI
- Anthropic
- Google Gemini
- Azure OpenAI, also with Entra ID
- Google Vertex AI
- Mistral
- xAI
- DeepSeek
- Groq
- Cerebras
- Together AI
- Fireworks AI
- OpenRouter
- LiteLLM
- Any OpenAI-compatible server or company gateway
- Ollama
- LM Studio
- vLLM
Your code, your rules
You choose where code goes
Phew sends code only to the model provider that you choose. With a local model, it never leaves your computer.
Secrets stay out
Phew does not read
.envfiles and keys, and removes secrets from command output.Risky commands ask first
Commands such as
git push --forceorterraform applyalways wait for you.No telemetry
Phew collects nothing. Your statistics stay on your computer.
Guides
Step by step, from your first free model to agents that work in parallel.
- A free AI coding agent in VS Code: four ways to startGitHub Copilot Free, a free Gemini key, free OpenRouter models, or a local model.
- Run a local AI coding agent in VS Code with OllamaOllama, LM Studio, or vLLM: the agent runs on your computer, and your code stays there.
- Use your own API key with an AI coding agent in VS CodeOpenAI, Gemini, Mistral, OpenRouter, Azure, or a gateway, with keys in the secret storage.
- Run AI coding agents in parallel in VS CodeParallel chats, agents in Git worktrees, and subagents, each with its own model.
- How to use an AI coding agent safely in VS CodeReview every change, approve risky commands, keep secrets out, and undo anything.
- Fix failing tests and errors with AI in VS CodePhew it! finds the cause, fixes it, and runs your tests until they pass.
Questions
Is Phew free?
Yes. Phew is free and open source under the Apache License 2.0. You pay only your model provider, or nothing with a local model or a GitHub Copilot plan that you already have.
Which editors and systems does it run on?
VS Code 1.95 or newer, and editors that install extensions from Open VSX, such as VSCodium. It runs on Linux, macOS, and Windows, with bash, zsh, fish, PowerShell, or sh.
Can I use Phew at work?
Yes. Phew signs in through your company with short-lived tokens (Google Vertex AI, Azure with Entra ID, or a gateway), follows the rules of your team from AGENTS.md and the rule files of other agents, and collects no telemetry. Commands that change something ask first, and you can block commands for good.
How many tokens does it use?
As few as the task needs. Phew keeps the start of each request the same, so the prompt cache of the provider works: with Anthropic, later steps read the instructions and the conversation at 10% of the price. Old outputs leave the context, and large files come as an outline first. Each task shows its tokens and cost, and you can set a budget per task.
Does my code leave my computer?
Only to the model provider that you choose: your prompts, the files that the agent reads, and the output of tools. Use Ollama, LM Studio, or vLLM to keep everything local.
What if the agent breaks something?
Each request is a checkpoint, and Restore checkpoint reverts all changes after it. Each change also has Undo in the editor. In the default mode, commands that change something ask you first.
Can another agent continue my work?
Yes. After each task, Phew writes a short handoff note in .phew/handoff/. With your consent, it points AGENTS.md to the latest note, so other agents read it too. Phew also follows your AGENTS.md rules.
How do I report a bug or ask for a feature?
Open an issue on GitHub. For security problems, follow SECURITY.md.