Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Free MIT AI coding agent — no API key needed. Built-in free model, or bring Claude, GPT, Gemini, DeepSeek, Ollama +50 more. Swarm mode, 40+ tools, browser & desktop automation, built in Rust.
Jump to setup instructionsFetched from the repository for this visit.
Built in Rust. Understands your codebase, edits files, runs commands and tests, drives a real Firefox session, controls desktop apps, and verifies its own work.
No API key needed to start. Or bring Claude, GPT, Gemini, DeepSeek, GitHub Copilot, OpenRouter, Ollama, LM Studio, or any OpenAI-compatible endpoint.
~28 MBRAM for one session(see benchmarks) | 40+built-in agent toolsfiles, shell, web, UI | No keyneeded to startbuilt-in free AI | 3 OSesWindows, macOS,and Linux |
⚡ Install · 🚀 Quick start · 🎬 Demo · 🧠 How it works · ✨ Features · 🔌 Models
📚 Docs · 🌐 Website · 🦊 Firefox Agent · 💬 Discussions · 🐞 Report a bug
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash
Windows (PowerShell)
irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1 | iex
Then:
alphacode doctor # check your setup
alphacode # launch the terminal UI in your project folder
Run alphacode --gui to open the native desktop workbench on Windows and macOS, or alphacode gui --web on any platform (including Linux). Release binaries ship with the GUI pre-built and require no Node.js installation.
[!TIP] Want to read the script first, pin a version, or build from source? See Installation options.
From install to a first completed task. Click the image to open it at full size, or watch the MP4.
🆓 Free to startA built-in free AI works with no API key and no sign-up. | 🧠 Use any modelClaude, GPT, Gemini, Copilot, DeepSeek, Ollama, LM Studio, and any OpenAI-compatible endpoint. | 🌐 Beyond the editorDrives a real Firefox session and native desktop apps, not only files and shells. |
🪶 LightweightA native Rust binary. About 28 MB of RAM for one session in our benchmarks. | 🔁 ResumableSessions survive terminal restarts, crashes, and dropped SSH connections. | 🐝 Multi-agentSwarm mode splits big goals across parallel agents. |
✅ Verifies its workRuns tests, reviews its own diff, and reports evidence. | 🧩 ExtensibleSkills, MCP servers, and hooks add your own workflows. | 🔓 Open sourceMIT licensed. No lock-in. |
| I want to… | Go to |
|---|---|
| Try AlphaCode in under two minutes | Quick start |
| Understand how a request is handled | How AlphaCode works |
| Copy a prompt that works | Prompt cookbook |
| See what it can do | Features |
| Compare it with other terminal agents | AlphaCode vs other terminal coding agents |
| Use Claude, GPT, Gemini, or a local model | Models and providers |
| Automate a website in Firefox | Firefox browser automation |
| Control a desktop application | Desktop automation |
| Run several agents in parallel | Swarm mode |
| Look up a command or shortcut | Commands and shortcuts |
| Fix an install or setup problem | Troubleshooting |
| Remove AlphaCode cleanly | Uninstall |
| Ask a question or get help | Get help |
| Help improve the project | Contributing |
AlphaCode is a free, open-source AI coding agent written in Rust that runs in your terminal. Instead of only suggesting code in a chat window, it works directly in your development environment. It can inspect a repository, plan a task, edit files, run commands and tests, search the web, operate a real Firefox session, interact with native desktop applications, and report what it verified.
flowchart LR
A["Describe a goal"] --> B["Understand the project"]
B --> C["Plan the work"]
C --> D["Act: code, web, browser, desktop"]
D --> E["Verify with tests and evidence"]
E --> F["Report what changed"]
The loop is understand, plan, execute, observe, verify. It ends with a report of what changed, what was checked, and what remains.
An AI coding agent is different from an autocomplete tool or a chatbot. You describe a goal in plain English, and the agent does the work itself: it reads your files, makes edits, runs your tests, looks at the results, and tries again if something fails. You stay in control through permission prompts and by reviewing the final diff.
AlphaCode runs in a terminal, so it works alongside any editor. Open a terminal in your project folder, run alphacode, and talk to it.
How a request flows through the brain. Every request, from "explain this repo" to "fix this bug and prove it", follows the same loop. The model decides what to do next, a tool does it, and the result feeds back in until the work is verified.
flowchart TD
YOU(["1. You describe a goal"]) --> CTX["2. Gather context<br/>project files, saved session, memory"]
CTX --> PLAN["3. Plan<br/>break the goal into small steps"]
PLAN --> MODEL["4. Model reasons<br/>built-in free AI or your own provider"]
MODEL --> TOOLS
subgraph TOOLS["Choose the right tool"]
T1["Files and search<br/>read, edit, patch, alphagrep"]
T2["Terminal<br/>bash, batch, bg"]
T3["Web<br/>websearch, webfetch, httpflow"]
T4["Firefox and desktop<br/>browser, desktop"]
T5["Swarm agents<br/>parallel sub-tasks"]
T6["Skills and MCP<br/>reusable workflows, external tools"]
end
TOOLS --> SAFE{"5. Risky action?"}
SAFE -->|"yes"| ASK["You approve or deny"]
SAFE -->|"no"| RUN["6. Run the tool"]
ASK -->|"approved"| RUN
ASK -->|"denied"| MODEL
RUN --> OBS["7. Observe the result<br/>output, errors, page state"]
OBS --> CHECK{"8. Verified?<br/>tests pass, diff is scoped"}
CHECK -->|"not yet"| MODEL
CHECK -->|"yes"| REPORT(["9. Report<br/>what changed, what was checked, what remains"])
RUN -.-> SAVE[("Session saved to disk<br/>resume any time")]
classDef goal fill:#FFD34D,stroke:#B8860B,color:#1a1a2e
class YOU,REPORT goal
The same flow in words:
| Step | What happens |
|---|---|
| 1 | Goal. You describe what you want in plain English. |
| 2 | Gather context. AlphaCode looks at your project, the saved session, and project memory. |
| 3 | Plan. It breaks your goal into small, checkable steps. |
| 4 | Reason. The model you chose (the built-in free AI or your own provider) decides the next action, including which tool to use: files and search, terminal, web, Firefox and desktop, swarm agents, or skills and MCP. |
| 5 | Safety check. Risky actions pause and ask you first. If you deny one, the model re-plans. |
| 6 | Act. The tool runs. |
| 7 | Observe. AlphaCode reads the output, errors, or page state. |
| 8 | Verify. It checks the result, for example by running tests and reviewing its own diff. If the work is not done, it loops back to step 4. |
| 9 | Report. You get a summary of what changed, what was checked, and what remains. |
Throughout the loop, the session is saved to disk, so you can resume it after a restart, crash, or dropped SSH connection.
This is a simplified illustration of how the loop plays out, not literal program output.
Fix the failing test in the export module and make sure the suite passes.alphagrep), reads the relevant files (read), and plans: reproduce, locate, fix, re-verify.bash) and sees the failure.edit)./diff.Four steps from zero to your first task.
Use the one-line installer from Install in 30 seconds.
[!IMPORTANT] On Windows, run AlphaCode from Windows Terminal or PowerShell. Do not double-click
alphacode.exe; the temporary console closes as soon as the process exits.
cd your-project
alphacode doctor
alphacode
alphacode doctor checks your environment and reports common setup issues. The built-in free AI lets you start without configuring an API key. Connected providers may require their own credentials and may incur charges.
The first launch includes a short onboarding flow for preferences such as telemetry, model defaults, and key bindings. Press Esc to skip any step.
Type a request in the terminal UI:
Explain this project and identify its main entry points.
Or ask it to find and repair a bug:
Find the highest-impact bug, fix it with the smallest reasonable change, and run the relevant tests.
To run a task without opening the interactive UI:
alphacode run "fix the failing test"
For scripts and CI, keep multiline prompts in a UTF-8 file or pipe them through standard input. Both forms support the same JSON output modes as an inline prompt.
alphacode run --json --prompt-file review.md
cat review.md | alphacode run --ndjson --stdin
Install the AlphaCode Browser Agent extension, then run:
alphacode browser setup
alphacode browser status
The status command reports whether the browser bridge is available and responding.
The seven things you will use most:
| Do this | With this |
|---|---|
| Start the interactive UI | alphacode |
| Run one task and exit | alphacode run "<task>" |
| Pick or switch a model | /model |
| Review what the agent changed | /diff |
| Shrink a long conversation | /compact |
| Continue where you left off | alphacode --resume |
| Fix setup problems | alphacode doctor |
Copy, paste, and adjust. Plain English works; specific goals work better.
| Goal | Example prompt |
|---|---|
| Learn a codebase | Explain how this project is structured and where a request flows from entry point to database. |
| Fix a bug | Find why the app crashes when users upload a PDF. Fix the root cause, add a regression test, and run the tests. |
| Add a feature | Add a --json flag to the export command. Follow existing conventions, add tests, and update the README. |
| Refactor safely | Split utils.rs into focused modules without changing behavior. Run the full test suite after each step. |
| Review a change | Review my uncommitted changes for bugs, missing tests, and edge cases. Be specific. |
| Test a web app | Open the app in Firefox, test the signup form with invalid input, and report anything that looks broken. |
| Automate a desktop app | Open Calculator, calculate 123 × 456, and read the result. |
| Big parallel job | /swarm "Analyze this application from architecture, security, testing, and performance perspectives." |
| Security review | Trace untrusted input to sensitive operations and report which issues are reproducible in this authorized test environment. |
cargo test passes" beats "fix login"./diff and read the changes, especially before merging or deploying./compact, or start a fresh session and resume later.| Capability | What it does |
|---|---|
| 🤖 AI coding agent | Understands natural-language tasks, plans multi-step work, edits code, and checks results |
| 📝 Code and file tools | Reads and writes files, applies targeted edits and patches, and searches code |
| ⌨️ Terminal execution | Runs commands, batches operations, and supports background jobs with safety controls |
| 🌍 Web tools | Searches, fetches, and analyzes web content and HTTP flows |
| 🦊 Firefox automation | Works with pages, DOM, forms, tabs, frames, screenshots, downloads, and existing sessions |
| 🖥️ Desktop automation | Uses platform accessibility APIs to interact with native applications |
| 🐝 Swarm mode | Coordinates multiple agents on work that can be split into independent tasks |
| 💾 Persistent sessions | Resumes work across terminal restarts |
| 🧠 Project memory | Keeps continuity during longer workflows |
| 🧩 Skills and MCP | Adds reusable workflows and connections to external tools and services |
| 🔌 Model choice | Supports multiple hosted providers, local models, and OpenAI-compatible endpoints |
| 🪟 Cross-platform | Runs on Windows, macOS, and Linux |
Coding and repository work: explore an unfamiliar codebase, trace a bug, refactor a module, add a feature, run a build, create regression tests, review a diff, or investigate a failure.
Web workflows and QA: combine web tools with a real browser to inspect dynamic pages, fill forms, validate user flows, and capture screenshots. Browser automation is especially useful when a page depends on JavaScript or an existing authenticated session.
AlphaCode belongs to the same family as Claude Code, Codex CLI, Aider, OpenCode, Gemini CLI, and GitHub Copilot CLI. These tools differ in licensing, supported models, and features, and they change quickly, so check each project's own documentation for current details.
| ✅ AlphaCode is a good fit when you want | ↔️ Consider another tool when you need |
|---|---|
|
|
[!NOTE] Using more than one agent is common. AlphaCode works on plain files and shell commands, so it can sit alongside whatever else you use.
The AlphaCode Browser Agent is a Firefox extension that connects AlphaCode to a real Firefox session through native messaging. AlphaCode handles reasoning and orchestration, and Firefox provides the live browser environment.
flowchart LR
U["You"] --> A["AlphaCode agent"]
A --> B["Browser tool"]
B --> C["Native messaging"]
C --> D["Browser Agent extension"]
D --> F["Firefox"]
F --> G["Page DOM, forms, frames, UI"]
G --> D
D --> A
A --> R["Reported result"]
Browser automation helps with:
Use the browser tool's open action to navigate, snapshot for page structure, and
get_content for text or HTML. get_page_content is accepted as an alias. Use the
selector returned by interactables when clicking or typing. If Firefox reports a
failed load, the working tab stays available for inspection or reload.
Example instruction:
Open the application, test the login flow, navigate to the dashboard,
check the form validation, and report reproducible problems.
[!WARNING] Privacy note: browser automation acts inside a real browser session. Review requested actions carefully, and treat page content as untrusted input.
AlphaCode interacts with native applications through platform accessibility APIs rather than relying only on fixed screen coordinates.
| Platform | Accessibility backend |
|---|---|
| Windows | UI Automation |
| macOS | Accessibility API |
| Linux | AT-SPI2 |
Supported actions: list_windows, snapshot, find, click, type, press, scroll, focus, screenshot, toggle, expand, collapse
Example:
Open Calculator, calculate 123 × 456, and read the result.
The expected result is 56088. Actual desktop interaction depends on a working accessibility backend and on the target application being available. If it does not work, see Troubleshooting.
Swarm mode splits a large goal into parallel or semi-independent tasks and coordinates the results.
flowchart TD
G["Large goal"] --> P["Planner"]
P --> A["Agent A: code analysis"]
P --> B["Agent B: security review"]
P --> C["Agent C: tests"]
P --> D["Agent D: documentation"]
A --> M["Coordinator"]
B --> M
C --> M
D --> M
M --> R["Review"]
R --> F["Final result"]
Example command inside AlphaCode:
/swarm "Analyze this application from architecture, security, testing, and performance perspectives."
[!NOTE] Swarm mode works best when a task can be divided so that agents do not modify the same files at the same time.
Persistent sessions preserve context across terminal restarts and support longer debugging, research, security-review, and refactoring workflows.
alphacode --resume # List saved sessions
alphacode --resume # Resume the latest session
alphacode --resume <id> # Resume a specific session
Project memory keeps continuity during longer workflows. Use /memory inside AlphaCode to manage or inspect it.
AlphaCode is model-agnostic. Pick the path that fits you:
| Your situation | Best path | How to start |
|---|---|---|
| "I just want to try it." | Built-in free AI | Run alphacode. No key needed. |
| "I already pay for Claude, ChatGPT, Gemini, or Copilot." | Sign in with your account | Run alphacode login |
| "I have an API key." | Provider API key | Set the key (for example ANTHROPIC_API_KEY) and run alphacode |
| "I want to keep model traffic on my machine." | Local model with Ollama or LM Studio | See Local models |
| "I want many models behind one key." | OpenRouter or OrcaRouter | alphacode login, or set the gateway key |
| Provider | Authentication or requirement | Notes |
|---|---|---|
| Built-in free AI | None | Designed to work without an API key |
| Anthropic (Claude) | OAuth or API key | Built-in provider support |
| OpenAI (GPT and o-series) | OAuth, API key, or supported sign-in flow | Reasoning, vision, and tools depend on the selected model and flow |
| Google Gemini | OAuth or API key | |
| GitHub Copilot | OAuth | Requires an eligible account or subscription |
| Cursor | OAuth | Reuses a Cursor session where supported |
| AWS Bedrock | AWS credentials | Build with --features bedrock |
| Azure | Azure AD or API key | Build with --features azure-auth |
| OpenRouter | API key | Access to a wide range of models, including DeepSeek |
| OrcaRouter | API key or browser login (OAuth 2.0 + PKCE) | Model list is read from GET /v1/models; non-chat models are filtered out |
| Ollama and LM Studio | None (local server) | See Local models |
| OpenAI-compatible endpoint | Endpoint-specific key or configuration | Add with alphacode provider add <name> |
alphacode login # Open the provider sign-in flow
alphacode login --provider openai # Sign in with a specific provider
alphacode provider list # List configured providers
alphacode provider add <name> # Add an OpenAI-compatible endpoint
alphacode provider current # Show the active provider and model
alphacode model list # List available models
alphacode model use <model> # Select a model
In the terminal UI, type /model to open the model and provider selector.
Run AlphaCode against a model on your own machine with no cloud account.
LM Studio
Load a chat model and start Local Server (default port 1234).
Run alphacode --provider lmstudio. AlphaCode queries http://localhost:1234/v1/models and picks the first chat model.
To choose a model explicitly, pass the exact ID shown by LM Studio:
alphacode --provider lmstudio --model <model-id>
Ollama
ollama serve
alphacode --provider ollama # or add: --model <model-id>
AlphaCode uses the context window reported by the server when available. For local models with up to 32K context, it uses a shorter task prompt and a bounded set of relevant tool schemas. Simple greetings may not need tool schemas at all.
[!NOTE] This reduces prompt overhead but does not increase the model server's configured context window. Set the context length in the server itself, and leave enough room for output.
Many providers use environment variables such as ANTHROPIC_API_KEY or OPENAI_API_KEY. You can also run alphacode login from your shell, or /login inside AlphaCode.
OpenAI Codex OAuth: sign-in uses a local callback at http://localhost:1455/auth/callback. Make sure port 1455 is free. If login times out, check whether another process is listening on that port, then retry /login.
See the documentation for provider-specific setup and troubleshooting.
AlphaCode includes 40+ tools. Names and availability can vary with the build and enabled features.
| Category | Examples |
|---|---|
| Files | read, write, edit, multiedit, patch, apply_patch, ls |
| Search | alphagrep, session_search, conversation_search |
| Execution | bash, batch, bg |
| Web and browser | browser, webfetch, websearch, scrapling, httpflow, open |
| Desktop | desktop, macos_computer_use |
| Agent workflow | memory, initiative, todo, plan, swarm |
| Utilities | doctor, self_improve, selfdev, cron, schedule, jwt, clipboard, side_panel, discover_tools |
Skills add reusable, specialized workflows without changing the core agent. Browse them with /skills. Examples include /bugbounty, /meme-coin-audit, and /frontend-design.
Share skills as a plugin with plugin.json and a skills/ directory. The manifest requires a name and version. To use another layout, set skills to the relative directories that each contain a SKILL.md.
alphacode plugin install ./my-plugin
alphacode plugin install --git --rev <full-commit-hash> <repository-url>
alphacode plugin list
Run alphacode schedule to manage one-shot and recurring jobs for a workspace. Each run gets a fresh session. The shared server stays up while an active workspace job is pending, and jobs resume on its next startup after a shutdown.
alphacode schedule create --in-minutes 15 "Summarize the current worktree changes"
alphacode schedule create --every-minutes 1440 --prompt-file daily-review.md
alphacode schedule list --json
alphacode schedule pause <id>
alphacode schedule resume <id>
alphacode schedule cancel <id>
Use --at with an RFC 3339 timestamp to choose the first run. After downtime, one overdue run catches up and the original interval resumes. Pause and cancel apply to future runs. AlphaCode records each occurrence before starting it, so a server failure after that point can skip the occurrence rather than repeat its side effects. Use the in-chat schedule tool for one-shot reminders tied to a chat. Use cron to manage legacy entries.
MCP support lets you connect external tools, services, and custom integrations. See the documentation for the configuration each server requires.
The live investigation tool provides a guarded lifecycle for authenticated experiments. Install the operator's scope first, start an investigation, and configure two owned named httpflow sessions with configure_session. The session guard needs a GET canary, its expected success status, a response marker, and an identity_pointer into its JSON response. Provisioning actually verifies that each session returns its own declared account ID.
Use hunt_status and hunt_advance to drive Scope → Provision → Map → Rank → Probe → Validate → Chain → Gap Audit → Report. Phase exits write their required artifacts. Structured plans include a benign counter-hypothesis/expected secure behavior, positive and negative controls, an observable oracle, bounded attempts, and a reopen condition. The ranked queue contains at most twelve actionable leads; rank re-scores without resetting counters or the phase clock. Deferred and parked hypotheses remain recorded.
Execute experiments through investigation execute. Guarded HTTP calls carry the lead ID, run through the normal registry scope gates, use host pacing, and are bracketed by session canaries. Direct HTTP bypasses and general browser scripts are rejected. Browser interaction requires an explicit human_gate for CAPTCHA, Turnstile, MFA, or SSO. Inspect each result with classify_control or record_attempt; working controls get no more probe budget. Invalid sessions and indeterminate requests cannot become finding evidence or be silently replayed. Setup/rotate/reset operations retain a durable intent and save returned material privately before returning.
The optional refresh is a repeatable HTTP login/session renewal call. For bearer sessions, identity_headers binds account IDs to header maps; optional identity_refreshes and identity_totp provide per-account overrides. Set refresh_token_pointer to the token in the renewal JSON, refresh_token_header (default authorization), and refresh_token_prefix (for example Bearer ) to persist and apply a newly returned token before the probe. Post-probe canary failure always invalidates that block; renewal cannot retroactively validate it. For SHA-1 TOTP, supply totp with secret_base32, digits (6 or 8), and period_seconds, and place {{TOTP}} in the refresh body. Secrets stay in the private engagement store. The optional time_budget_seconds defaults to 10,800 seconds for the percentage-based phases; initial phase caps are separate.
Use verify for captured differential proof, finalize_finding for all seven validation gates, and chain for an independent transition experiment. Report generation requires exactly one verified impact edge per finalized finding and writes the complete gap audit first. export saves the engagement summary and gap audit. Files live under the session's private engagement directory; caller-supplied pass flags do not generate final validation records.
Code analysis, HTTP tools, browser automation, terminal execution, memory, and multi-agent workflows can support repeatable application-security reviews.
Hunting prompts include transferable research questions distilled from disclosed
reports. The hunt_reasoning tool turns observed product structure into explicit
assumptions, prerequisites, counterexamples and proposed controlled tests.
Structured investigation plans preserve controls, bounded dispatches and
reassessment decisions. These support investigation; they do not certify findings
or establish competitive performance. See the reasoning curriculum and study workflow.
Review this API for insecure direct object references and provide reproducible evidence.
Trace this parameter through the application and determine whether it reaches a dangerous sink.
Use the authorized test environment in Firefox to test input validation and document reproducible findings.
[!CAUTION] Authorization required. Test only systems you own or are explicitly authorized to assess.
An agent that can change files, execute commands, and operate applications needs careful oversight. AlphaCode includes these safeguards:
[!WARNING] These safeguards reduce risk; they do not guarantee that every action is safe or correct. Review important diffs before merging or deploying. Use
/diffto inspect changes.
Session resilience. Sessions are resumable and designed to recover from interruptions. Crashes, signals, or dropped SSH connections can mark a session as Crashed and provide a resume command. Transcripts are persisted to disk rather than kept entirely in process memory.
Coding-quality contract. For code-changing tasks, AlphaCode is instructed to:
The agent's instructions are not a substitute for independently reviewing the implementation and test results.
AlphaCode is written in Rust and designed to keep runtime overhead modest. The charts show resident memory (RAM) for one active session and for ten concurrent sessions. Lower is better.
| Tool | One active session | Ten concurrent sessions |
|---|---|---|
| AlphaCode | 27.8 MB (1.0×) | 117.0 MB (1.0×) |
| Codex CLI | 140.0 MB (5.0×) | 334.8 MB (2.9×) |
| pi | 144.4 MB (5.2×) | 833.0 MB (7.1×) |
| Cursor Agent | 214.9 MB (7.7×) | 1,632.4 MB (14.0×) |
| Antigravity CLI | 243.7 MB (8.8×) | 1,021.2 MB (8.7×) |
| GitHub Copilot CLI | 333.3 MB (12.0×) | 1,756.5 MB (15.0×) |
| OpenCode | 371.5 MB (13.4×) | 3,237.2 MB (27.7×) |
| Claude Code | 386.6 MB (13.9×) | 2,300.6 MB (19.7×) |
[!NOTE] These are historical measurements, not an independent benchmark or a guarantee of performance on every machine or workload. Competing tools change quickly, so re-measure before drawing conclusions.
Compare tools under the same conditions and record:
Run a repeatable Python bug fix against a specific AlphaCode binary, provider, and model. Use a provider already configured on your machine. Each trial starts with a fresh copy of the same broken file and checks the resulting behavior with assertions kept outside the agent's workspace.
python scripts/coding_task_benchmark.py --provider ollama --model YOUR_LOCAL_MODEL --trials 5
Use --binary to compare builds. The JSON report records completion, behavior
checks, wall-clock time, and usage when the provider reports it. Trials disable
automatic follow-up turns. Omit --model to measure a provider's default route,
for example --provider alphax-free. Use the same pinned provider and model,
machine, and trial count for comparisons. This single fixture measures a
specific repair workflow.
The quick-start commands use the latest installer. Not sure which method to use?
| If you… | Use |
|---|---|
| Just want it working | The one-line installer above |
| Need a reproducible, pinned version | Installer with --version / -Version |
| Must review scripts before running them | Download the script, read it, then run it |
| Don't want your PATH or shell profile edited | --no-path / -NoPath |
| Want to hack on AlphaCode | The "Build from source" section below |
irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1 | iex
The installer:
alphacode.exe under %LOCALAPPDATA%\Programs\alphacode\bin\;Path and activates it in the current shell;It writes the user-level HKCU\Environment\Path rather than the machine-wide path, appends its entry without duplicating it on re-run, preserves existing shell-only PATH entries, and broadcasts WM_SETTINGCHANGE so new terminals pick up the change.
To pass installer parameters, load the script as a script block instead of piping directly to iex:
| Parameter | Purpose |
|---|---|
-Version vX.Y.Z | Pin a release version |
-FromSource | Build from source instead of downloading a release |
-PathDryRun | Preview the PATH change without writing it |
-NoPath | Do not modify PATH |
-Prefix <dir> | Choose a custom installation prefix |
$installer = [scriptblock]::Create((irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1))
& $installer -Version vX.Y.Z # Pin a release version
& $installer -FromSource # Build from source
& $installer -PathDryRun # Preview the PATH change
& $installer -NoPath # Do not modify PATH
& $installer -Prefix "$env:LOCALAPPDATA\Programs\alphacode" # Custom prefix
Run one parameter at a time, or combine them, for example & $installer -Version vX.Y.Z -NoPath. Replace vX.Y.Z with a real tag from the releases page.
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash
The installer downloads a release, verifies its checksum, installs alphacode under ~/.local/bin, and updates a supported shell profile (bash, zsh, fish, nushell, csh, and ksh). It is safe to re-run without duplicating its profile entry.
| Option | Purpose |
|---|---|
--version vX.Y.Z | Pin a release version |
--no-path | Do not modify PATH |
--link | Link into /usr/local/bin |
--prefix <dir> | Choose a custom installation prefix |
# Pin a release version
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash -s -- --version vX.Y.Z
# Do not modify PATH
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash -s -- --no-path
# Link into /usr/local/bin
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash -s -- --link
# Choose a custom installation prefix
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash -s -- --prefix ~/.local
git clone https://github.com/dragonked2/alphacode.git
cd alphacode
cargo build --release
./target/release/alphacode --version
The project pins Rust edition 2024 in rust-toolchain.toml, and a C toolchain for your platform is also required.
Pre-built release binaries ship with the desktop/web GUI already embedded (no Node.js required). When building from source with the embedded GUI, build the frontend assets first (requires Node.js 22+):
cd src/cli/gui/ui && npm ci && npm run build
On Windows contributors can also run scripts/build-gui.ps1 to build both the frontend and the Rust binary in one step.
The default build omits some heavier optional stacks. Enable them when you need them:
cargo build --release --features bedrock,embeddings,pdf,renderer
For Azure AD authentication, add azure-auth, for example --features bedrock,azure-auth,embeddings,pdf,renderer.
Verify and update
alphacode --version
alphacode doctor
alphacode update
On Windows you can also check command resolution with Get-Command alphacode.
AlphaCode stores its configuration, sessions, and logs outside the project directory.
The default state root is ~/.alphacode/ on Linux and macOS or
%USERPROFILE%/.alphacode/ on Windows. Set ALPHACODE_HOME to override it.
The root contains config.toml, sessions/, and logs/.
A health monitor records memory use, slow operations, error rates, and subsystem liveness in health.json.
| Section | Purpose |
|---|---|
[provider] | Provider and model selection |
[features] | Feature flags |
[display] | UI preferences |
[websearch] | Search settings |
[agents] | Agent and swarm settings |
[hooks] | Lifecycle hooks |
[safety] | Notifications and safety controls |
[compaction] | Context management |
[power] | Power-management behavior |
[gateway] | Remote gateway settings |
Themes: Royal Gold is the default terminal look, with a matching palette for light terminal backgrounds. Use /theme to browse themes, /theme royal-gold to select it, or /theme off to return to the default. Your saved theme and individual /colors overrides are preserved.
See docs/configuration.md for the full reference.
| Command | Purpose |
|---|---|
alphacode | Launch the interactive terminal UI |
alphacode doctor | Check setup and common environment issues |
alphacode login | Authenticate with a provider |
alphacode run "<task>" | Run a task non-interactively |
alphacode repl | Start the simple REPL without the TUI |
alphacode provider add <name> | Add an OpenAI-compatible endpoint |
alphacode provider list | List configured providers |
alphacode provider current | Show the active provider and model |
alphacode model list | List available models |
alphacode model use <model> | Select a model |
alphacode browser setup | Configure the browser bridge |
alphacode browser status | Check browser connectivity |
alphacode --resume | List saved sessions |
alphacode --resume [id] | Resume the latest session, or a specific one |
alphacode --version | Show the installed version |
alphacode update | Update AlphaCode |
| Command | Purpose |
|---|---|
/help | Show help |
/login | Sign in to a provider from inside AlphaCode |
/model | Open the model and provider picker |
/agents | Manage agents |
/swarm "<goal>" | Split a large goal across multiple agents |
/compact | Compact context |
/memory | Manage or inspect project memory |
/skills | Browse skills |
/theme | Browse and select themes |
/diff | Review changes |
/poke | Trigger an automatic follow-up |
/screenshot-mode | Configure screenshot capture |
/exit | Exit while preserving the session |
| Shortcut | Action |
|---|---|
| F1 | Show shortcut reference |
| Ctrl+T | Toggle queue mode |
| Ctrl+Y | Accept the suggested fallback model after an error |
| Ctrl+C | Interrupt the current turn (quit when idle) |
| Esc | Close a dialog or go back |
| Shift+Tab | Cycle favorited models |
Start with alphacode doctor, which catches most setup problems.
On Windows, an interactive session normally uses one terminal client and one shared server. After a reload, the original launcher may also stay open to keep Command Prompt waiting until the session ends. Later reloads pass the wait back to that same launcher.
| Symptom | Quick fix |
|---|---|
alphacode command not found | Open a new terminal. Still failing? See the PATH steps below. |
| Window closes instantly on Windows | Run alphacode from Windows Terminal or PowerShell, not by double-click. |
| Firefox Browser Agent not responding | alphacode browser setup, then alphacode browser status. |
| Desktop automation unavailable | Check accessibility permissions for your OS (details below). |
| OpenAI login times out | Free up localhost port 1455, then retry /login. |
| Anything else | alphacode doctor, then open an issue. |
alphacode command not foundOpen a new terminal first so it can read the updated PATH. If it is still not found, confirm the install location and PATH settings.
bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
zsh (default on modern macOS)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
fish
fish_add_path $HOME/.local/bin
Windows: re-run the installer (unless you used -NoPath), or add %LOCALAPPDATA%\Programs\alphacode\bin to your user PATH and open a new PowerShell window.
alphacode browser status
alphacode browser setup
Then confirm that the AlphaCode Browser Agent extension is installed and enabled in Firefox.
Port 1455 on localhost may already be in use. Check for another process listening on that port, stop it if appropriate, and retry /login. See the documentation for provider-specific steps.
Still stuck? Run alphacode doctor and open an issue with reproducible steps and relevant logs.
[!WARNING] Remove secrets and tokens from diagnostic output before sharing it.
Close active AlphaCode sessions first. On Windows, a running alphacode.exe cannot be removed until its process exits.
Recommended: uninstall script. By default it removes the installed executable and leaves your configuration and saved sessions in place.
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.ps1 | iex
[!CAUTION] Purging is permanent. It may delete configuration, saved sessions, logs, and locally stored sign-in data. Back up anything you need first.
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.sh | bash -s -- --purge
# Equivalent environment-variable form
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.sh | ALPHACODE_PURGE=1 bash
# Windows (PowerShell)
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.ps1))) -Purge
| Item | Linux and macOS | Windows |
|---|---|---|
| Binary | ~/.local/bin/alphacode | %LOCALAPPDATA%/Programs/alphacode/ |
| Default state root | ~/.alphacode/ | %USERPROFILE%/.alphacode/ |
Remove only the binary to keep your settings and sessions. Delete the data directories only if you intend to remove local state as well.
# Linux
rm -f ~/.local/bin/alphacode
# macOS
rm -f ~/.local/bin/alphacode
# Windows (PowerShell)
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\Programs\alphacode"
If you installed with cargo install --path ., run cargo uninstall alphacode. If you built from a clone, delete the cloned repository separately.
%USERPROFILE%-style entries are not expanded unintentionally.about:addons, select AlphaCode Browser Agent, and choose Remove.alphacode browser setup, remove the AlphaCode registration after checking its exact name:
~/.mozilla/native-messaging-hosts/~/Library/Application Support/Mozilla/NativeMessagingHosts/HKCU\Software\Mozilla\NativeMessagingHosts (remove it with Registry Editor or Remove-Item -Path "HKCU:\Software\Mozilla\NativeMessagingHosts\<name>")*_API_KEY variables, and revoke provider API keys or OAuth grants you no longer need.alphacode schedule cancel <id> before deleting local application data.Verify removal
command -v alphacode # macOS / Linux
Get-Command alphacode -ErrorAction SilentlyContinue # Windows
If the shell still finds the command, open a new terminal or refresh the shell's command cache.
Yes. AlphaCode is open source under the MIT License and includes a built-in free AI model for getting started without an API key. Third-party model providers may impose their own usage limits, terms, or charges.
Not to get started with the built-in free AI. Other providers may require sign-in, API keys, or additional configuration.
Yes. It supports multiple providers and any OpenAI-compatible endpoint, including local servers such as Ollama and LM Studio. Authentication methods and model capabilities depend on your selected provider and model. See Models and providers.
They all belong to the same family of terminal coding agents. AlphaCode's focus is a small memory footprint (see Benchmarks), control of a real Firefox session and native desktop apps through accessibility APIs, built-in multi-agent swarms, and freedom to use any model or provider under an MIT license. See AlphaCode vs other terminal coding agents.
That depends on the model you choose. With a hosted provider, the context AlphaCode sends to the model (such as relevant files and your prompts) goes to that provider under its terms. With a local model through Ollama or LM Studio, model traffic stays on your machine. Web and browser tools make their own network requests when you use them. The first-run onboarding also lets you set telemetry preferences.
AlphaCode works at the level of files and shell commands in your project folder, so it is not tied to one language or editor. Quality on a given language or framework depends mostly on the model you select. Run it in a terminal next to your editor of choice.
Windows, macOS, and Linux. Individual features and desktop automation backends vary by operating system and build configuration.
Yes. The Firefox integration supports real-browser workflows such as navigation, DOM and form interaction, tabs, frames, screenshots, and downloads. It requires a correctly configured browser bridge and extension. See Firefox browser automation.
Yes, through platform accessibility APIs on Windows, macOS, and Linux. Required permissions and the level of support depend on the operating system and target application.
AlphaCode includes permission prompts, shell safety controls, and other safeguards (see Safety and reliability), but no safeguard is perfect. Commit or stash before you start, review important diffs with /diff before merging or deploying, and treat browser and web content as untrusted.
Yes. You can start with plain-English instructions, and the Prompt cookbook has examples to copy. Review code changes and actions carefully, particularly before deploying software or running sensitive operations.
Yes, for authorized security research and testing. Only assess systems you own or have explicit permission to test. See Security testing and bug bounty workflows.
Persistent sessions and project memory support longer workflows across terminal restarts. Use alphacode --resume to list saved sessions, then alphacode --resume <session-id> to continue one.
Run alphacode update.
Open an issue or start a thread in Discussions, or read the Contributing section to send a pull request.
| Area | Examples |
|---|---|
| Software development | Debugging, refactoring, feature work, test generation, code review, repository exploration, documentation, build troubleshooting |
| Web development | Frontend and backend changes, API testing, browser-based testing, UI validation |
| Application security | Authorized penetration testing, bug bounty work, code audits, HTTP analysis, reproducible vulnerability reports |
| QA and testing | Regression testing, form validation, UI verification, reproducibility checks |
| Automation | Browser workflows, desktop applications, repetitive tasks, supported data-collection workflows |
| Resource | What you will find |
|---|---|
| Documentation index | Guides and provider-specific setup |
| Configuration reference | Every config section and option |
| Changelog | What changed in each release |
| Releases | Downloads and release notes |
| Official website | Overview and news |
| Firefox Browser Agent | Browser automation extension |
| Contributing guide | How to submit changes |
| Code of conduct | Community standards |
| Security policy | How to report vulnerabilities |
| I need to… | Best place |
|---|---|
| Ask a question or share an idea | GitHub Discussions |
| Report a reproducible bug | GitHub Issues |
| Check my setup | alphacode doctor |
| Report a security vulnerability | Privately, per SECURITY.md |
Report vulnerabilities privately using the instructions in SECURITY.md. For issues specific to the Firefox extension, Mozilla's add-on reporting tools may also be appropriate.
Issues, reproducible bug reports, documentation updates, and pull requests are welcome. New here? Look for a small bug or a docs improvement to start.
git clone https://github.com/dragonked2/alphacode.git
cd alphacode
cargo build --release
cargo test --lib
cargo clippy --lib -- -D warnings
Before opening a pull request, check that:
Read CONTRIBUTING.md before submitting a change.
Thanks to everyone who has contributed code, tests, or reviews.
Trojan-Spy.Win32.Stealer.fxcr false positive (#36) with the exact hash, engine version, and VirusTotal link. That report led us to the root cause — security-methodology documentation shipping as plaintext inside the binary — and to the fix and release guard in 1.1.21.AlphaCode is free and open source, and it is kept that way with the help of organizations that provide services to open-source projects and to users who cannot pay for a frontier model. Thank you.
| Partner | What they provide | How AlphaCode uses it |
|---|---|---|
| Token Harbor | A unified, OpenAI-compatible API gateway for leading hosted models, with a zero-priced, tool-capable tier. | Listed near the front of the provider list, so a new user can start without a paid key. The provider's default route is a zero-cost, tool-capable model. See provider setup. |
| SignPath Foundation | Free code signing for open-source projects. | AlphaCode has been accepted into the program; the release pipeline is wired to Authenticode-sign the Windows builds. See the code-signing runbook. |
| Individual supporters | One-off and recurring support for development time. | Buy Me a Coffee. |
Want to sponsor or partner with the project? Open a discussion or reach out through the website. Providers and tooling companies whose service integrates with AlphaCode are welcome to get in touch.
If AlphaCode saves you time, the best ways to help are free:
Built with Rust by Ali Essam · MIT licensed · Open source
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.