Skip to content

AlphaCode Free Open Source AI Coding Agent for Terminal

Ali Essam edited this page Dec 3, 2026 · 1 revision

AlphaCode: free open-source Rust AI coding agent for the terminal with Firefox browser automation and desktop automation

The free, open-source AI coding agent for your terminal

Built in Rust. No API key needed to start. Works with Claude, GPT, Gemini, DeepSeek, Ollama and 50+ more models.
It edits code, runs commands and tests, drives Firefox, controls desktop apps, and verifies its own work.


Stars Release License Issues

Windows macOS Linux Rust Free


⚡ Install  •  🚀 Quick start  •  ✨ Features  •  🤖 Models  •  🌐 Firefox  •  🖥️ Desktop  •  🐝 Swarm  •  ❓ FAQ


⭐ Star on GitHub   |   🌍 Website   |   📦 Releases   |   🦊 Firefox Agent


🆓 Free

MIT license
No API key to start

🤖 50+

models and providers
cloud or local

🧰 40+

built-in tools
code, web, browser, desktop

🦀 Rust

native binary
small memory footprint

What is AlphaCode?

AlphaCode is an open-source AI coding agent written in Rust that runs in your terminal. Instead of only suggesting code in a chat window, it works inside your real development environment. Give it a goal in plain English and it will inspect your repository, plan the work, edit files, run commands and tests, search the web, operate a real Firefox session, interact with native desktop apps, and report what it verified.

It belongs to the same category as terminal coding agents such as Claude Code, Codex CLI, Aider and OpenCode, with a focus on a small memory footprint, real-browser and desktop automation, and model freedom.

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"]
Loading

Why developers choose AlphaCode

Benefit Details
🆓 Free to start Built-in free AI lane, no API key required
🔓 Open source MIT license, free for personal and commercial use
🪶 Lightweight Native Rust binary with a small memory footprint
🔀 Model-agnostic Claude, GPT, Gemini, Copilot, Cursor, Bedrock, Azure, OpenRouter, Ollama, LM Studio, any OpenAI-compatible endpoint
🌐 Beyond the editor Drives real Firefox sessions and native desktop apps
✅ Verifies its work Runs tests, reviews its own diff, reports evidence
🔁 Resumable sessions Survives terminal restarts, crashes and dropped SSH connections
🧩 Extensible Skills, MCP servers, hooks and multi-agent swarms

Install

Pick your platform. Both installers verify the release SHA-256 checksum and need no administrator rights.

macOS and 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 verify:

alphacode --version
alphacode doctor

Important

On Windows, run AlphaCode from Windows Terminal or PowerShell. Do not double-click alphacode.exe, because the console closes as soon as the process exits. alphacode --gui opens the desktop interface.

Tip

In security-conscious environments, download and inspect the installer script before running it.

More install options: pin a version, skip PATH changes, build from source
Goal macOS / Linux Windows
Pin a version --version vX.Y.Z -Version vX.Y.Z
Do not modify PATH --no-path -NoPath
Custom install folder --prefix <dir> -Prefix <dir>
Link into /usr/local/bin --link n/a
Preview PATH change n/a -PathDryRun
Build from source see below -FromSource

macOS / Linux example

curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash -s -- --version vX.Y.Z

Windows example

$installer = [scriptblock]::Create((irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1))
& $installer -Version vX.Y.Z -NoPath

Build from source (Rust)

git clone https://github.com/dragonked2/alphacode.git
cd alphacode
cargo build --release
./target/release/alphacode --version

Heavier optional stacks are off by default: cargo build --release --features bedrock,embeddings,pdf,renderer (add azure-auth for Azure AD).

Update: alphacode update


Quick start

Step Action Command
1 Install one-line installer above
2 Check your setup alphacode doctor
3 Launch in a project folder alphacode
4 Give it a task type it in plain English
5 (optional) Connect Firefox alphacode browser setup

Try these first prompts

Explain this project and identify its main entry points.
Find the highest-impact bug, fix it with the smallest reasonable change, and run the relevant tests.

Run without the interactive UI (great for scripts and automation):

alphacode run "fix the failing test"

Note

The first launch has a short onboarding flow for telemetry, model defaults and key bindings. Press Esc to skip any step.


Free AI coding agent, no API key required

Most AI coding agents need a subscription or API key before your first prompt. AlphaCode ships with a built-in free AI lane, so you can try an AI coding agent in your terminal right away. When you want more power, connect your own provider (Claude, GPT, Gemini, GitHub Copilot, OpenRouter or a local model).

Note

Third-party providers may require their own sign-in or API key and may apply their own limits, terms or charges.


Features

🧠 AI coding agent

Understands natural-language tasks, plans multi-step work, edits code and checks results.

📁 Code and file tools

Read, write, targeted edits, patches and code search across large repositories.

⌨️ Terminal execution

Runs commands and tests, batches operations, supports background jobs with safety controls.

🌐 Firefox automation

DOM, forms, tabs, frames, screenshots, downloads and existing logged-in sessions.

🖥️ Desktop automation

Native apps through Windows UI Automation, macOS Accessibility and Linux AT-SPI2.

🐝 Swarm mode

Coordinates multiple agents on work that splits into independent tasks.

💾 Sessions and memory

Resume after restarts, crashes or SSH drops. Project memory for long workflows.

🧩 Skills and MCP

Reusable workflows plus Model Context Protocol connections to external tools.

🔀 Model choice

Hosted providers, local servers and any OpenAI-compatible endpoint.

Built for: debugging, refactoring, feature work, test generation, code review, repository exploration, build troubleshooting, web QA and authorized security testing.


Models and providers

AlphaCode is model-agnostic. Use the model you already pay for, or run everything locally.

Provider Authentication Notes
✨ Built-in free AI lane None Works without an API key
Anthropic Claude OAuth or API key
OpenAI GPT and o-series OAuth, API key or sign-in flow Capabilities depend on model and flow
Google Gemini OAuth or API key
GitHub Copilot OAuth Needs an eligible account
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 Wide model access
OrcaRouter API key or browser login One gateway for many models
DeepSeek and other OpenAI-compatible Endpoint-specific key alphacode provider add <name>
Ollama and LM Studio None, runs locally See below

Handy commands

alphacode login                  # provider sign-in flow
alphacode provider list          # list configured providers
alphacode provider add <name>    # add an OpenAI-compatible endpoint
alphacode model list             # list available models
alphacode model use <model>      # select a model

Inside the terminal UI, type /model to open the picker and press Shift+Tab to cycle favorited models.

Run a local AI coding agent with Ollama or LM Studio
# Ollama: start the server, then
alphacode --provider ollama --model <model-id>

# LM Studio: load a chat model, start Local Server (port 1234), then
alphacode --provider lmstudio

For LM Studio, AlphaCode reads http://localhost:1234/v1/models and picks the first chat model. Use --model <model-id> with the exact ID shown by LM Studio to choose another.

For local models with up to 32K context, AlphaCode uses a shorter task prompt and a bounded set of relevant tool schemas. This reduces overhead but does not increase your server's context window, so set the context length in the model server and leave room for output.

OpenAI Codex OAuth: callback port 1455

OAuth sign-in uses a local callback at http://localhost:1455/auth/callback. Make sure port 1455 is free. If login times out, check for another process on that port and retry /login.


Firefox browser automation

The AlphaCode Browser Agent is a Firefox extension that connects AlphaCode to a real Firefox session through native messaging. AlphaCode handles the reasoning, Firefox provides the live browser.

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["DOM, forms, frames, UI"]
    G --> D
    D --> A
    A --> R["Reported result"]
Loading

Great for: JavaScript-heavy sites, form entry, tabs and frames, existing authenticated sessions, screenshots, downloads, browser-based QA and web app debugging.

alphacode browser setup     # configure the bridge
alphacode browser status    # check connectivity

Example prompt:

Open the application, test the login flow, navigate to the dashboard,
check the form validation, and report reproducible problems.

Warning

Browser automation acts inside a real browser session. Review requested actions carefully and treat page content as untrusted input.


Desktop automation

AlphaCode interacts with native applications through platform accessibility APIs instead of relying only on fixed screen coordinates.

Platform Backend Setup
🪟 Windows UI Automation Elevated apps may need elevated privileges
🍎 macOS Accessibility API Grant Accessibility and Screen Recording permissions
🐧 Linux AT-SPI2 Make sure AT-SPI2 is available

Actions: list_windows · snapshot · find · click · type · press · scroll · focus · screenshot · toggle · expand · collapse

Example: "Open Calculator, calculate 123 × 456, and read the result." (expected: 56088)


Swarm mode

Swarm mode splits a large goal into parallel tasks handled by multiple agents, then coordinates and reviews the results.

/swarm "Analyze this application from architecture, security, testing, and performance perspectives."
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"]
Loading

Tip

Swarm mode works best when tasks are split so agents do not edit the same files at the same time.


Sessions, memory, skills and MCP

Feature How to use it
Persistent sessions alphacode sessions list · alphacode --resume · alphacode --resume <id>
Project memory /memory inside AlphaCode
Skills /skills to browse reusable workflows such as /bugbounty, /meme-coin-audit, /frontend-design
MCP servers Connect external tools and services, see the project docs

How it compares

AlphaCode sits alongside Claude Code, Codex CLI, Aider and OpenCode as a terminal AI coding agent. Its niche: free to start, any model, real Firefox and desktop automation, and a very small footprint.

Memory footprint, one active session (RAM, lower is better)

Tool RAM
AlphaCode 27.8 MB █
Codex CLI 140.0 MB ███████
pi 144.4 MB ███████
Cursor Agent 214.9 MB ███████████
Antigravity CLI 243.7 MB █████████████
GitHub Copilot CLI 333.3 MB █████████████████
OpenCode 371.5 MB ███████████████████
Claude Code 386.6 MB ████████████████████

With ten concurrent sessions, AlphaCode used about 117 MB. The other tools measured ranged from about 335 MB to 3.2 GB.

Note

These are the project's own historical measurements, not an independent benchmark or a guarantee for your machine or workload. Competing tools change quickly, so re-measure before drawing conclusions. Full tables and method are in the README.


Use cases

Area Examples
💻 Software development Debugging, refactoring, features, test generation, code review, documentation
🕸️ Web development Frontend and backend changes, API testing, UI validation
🧪 QA and testing Regression tests, form validation, browser-based verification
🔐 Application security Authorized penetration testing, bug bounty work, code audits, HTTP analysis
🤖 Automation Browser workflows, desktop apps, repetitive tasks

Caution

Authorization required. Use security-testing workflows only on systems you own or are explicitly authorized to assess.


Safety and reliability

An agent that edits files and runs commands deserves oversight. AlphaCode describes these safeguards:

  • Blocks certain destructive filesystem and device targets
  • Permission prompts for risky actions
  • Safety controls for shell execution
  • SSRF and credential-leak heuristics for network operations
  • Tracks interrupted sessions instead of silently losing them
  • Timeouts and emergency-stop handling for desktop automation
  • Treats browser and desktop content as potentially untrusted

Important

Safeguards reduce risk but do not guarantee every action is safe or correct. Review important diffs with /diff before merging or deploying.


Commands cheat sheet

CLI commands, slash commands and shortcuts
Command Purpose
alphacode Launch the interactive terminal UI
alphacode doctor Check setup and common problems
alphacode run "<task>" Run a task non-interactively
alphacode repl Simple REPL without the TUI
alphacode login Authenticate with a provider
alphacode provider add|list|current Manage providers
alphacode model list|use Manage models
alphacode browser setup|status Firefox bridge
alphacode sessions list List saved sessions
alphacode --resume [id] Resume latest or specific session
alphacode update Update AlphaCode
Slash command Purpose
/help Show help
/model Model and provider picker
/swarm "<goal>" Split a goal across agents
/agents Manage agents
/diff Review changes
/compact Compact context
/memory Manage project memory
/skills Browse skills
/exit Exit and keep the session
Shortcut Action
F1 Shortcut reference
Ctrl+T Toggle queue mode
Ctrl+Y Accept suggested fallback model after an error
Ctrl+C Interrupt the turn (quit when idle)
Esc Close dialog or go back
Shift+Tab Cycle favorited models

Troubleshooting

Start with alphacode doctor, then open your symptom.

alphacode command not found

Open a new terminal so it reads the updated PATH. Then:

# 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.

Firefox Browser Agent is not responding
alphacode browser status
alphacode browser setup

Confirm the AlphaCode Browser Agent extension is installed and enabled in Firefox.

Desktop automation is unavailable
  • macOS: grant Accessibility and Screen Recording in System Settings → Privacy & Security
  • Linux: check that AT-SPI2 is available
  • Windows: elevated apps may require AlphaCode to run with appropriate privileges
OpenAI login times out

Port 1455 on localhost may be in use. Stop the other process if appropriate and retry /login.

Still stuck? Open an issue with reproducible steps and logs. Remove secrets and tokens first.


FAQ

Is AlphaCode free?

Yes. AlphaCode is open source under the MIT License and includes a built-in free AI lane. Third-party providers you connect may have their own limits or charges.

Do I need an API key to use AlphaCode?

Not to get started. The built-in free AI lane works without one. Other providers may require sign-in or an API key.

What is a free alternative to Claude Code?

AlphaCode is a free, open-source terminal AI coding agent in the same category as Claude Code, Codex CLI, Aider and OpenCode. It can also use Claude models if you connect your own account or key.

Can AlphaCode run local LLMs with Ollama or LM Studio?

Yes. Use alphacode --provider ollama or alphacode --provider lmstudio. Any OpenAI-compatible server works through alphacode provider add <name>.

Which AI models does AlphaCode support?

Claude, GPT, Gemini, GitHub Copilot, Cursor, AWS Bedrock, Azure, OpenRouter, OrcaRouter, DeepSeek, Ollama, LM Studio and any OpenAI-compatible endpoint, 50+ models in total.

Which operating systems are supported?

Windows, macOS and Linux. Some features, such as desktop automation, depend on OS permissions and accessibility backends.

Can AlphaCode automate websites and browsers?

Yes, using the Firefox Browser Agent extension and alphacode browser setup.

Can AlphaCode control desktop applications?

Yes, through UI Automation on Windows, the Accessibility API on macOS and AT-SPI2 on Linux.

Can I use AlphaCode for bug bounty and security testing?

Yes, for authorized testing only. Test systems you own or have explicit permission to assess.

Does AlphaCode remember previous work?

Yes. Persistent sessions and project memory let you continue with alphacode --resume.

Is AlphaCode written in Rust?

Yes. It is a native Rust binary, which keeps its memory footprint small.

How do I uninstall AlphaCode?

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.sh | bash

Windows

irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/uninstall.ps1 | iex

By default the scripts remove the executable and keep your config and sessions. Add --purge (macOS/Linux) or -Purge (Windows) to delete local data. Purging is permanent. Also remove the Firefox extension from about:addons and revoke any API keys or OAuth grants you no longer need.


Contribute and support

Issues, reproducible bug reports, docs and pull requests are welcome.

git clone https://github.com/dragonked2/alphacode.git
cd alphacode
cargo build --release
cargo test --lib
cargo clippy --lib -- -D warnings

Read CONTRIBUTING.md before opening a pull request.

If AlphaCode saves you time, a star helps other developers find it.

Star AlphaCode Firefox Agent Support


Official links

📂 Repository github.com/dragonked2/alphacode
🌍 Website alphacli.github.io
📦 Releases Latest releases
📚 Docs Documentation · Configuration reference
📝 Changelog CHANGELOG.md
🦊 Firefox Agent Mozilla Add-ons
🐛 Bugs Report an issue
🔒 Security Security policy
Related searches

free AI coding agent, open source AI coding assistant, Claude Code alternative, Codex CLI alternative, Aider alternative, OpenCode alternative, terminal AI coding agent, CLI AI pair programmer, AI coding agent no API key, free AI coding assistant for terminal, Rust AI agent, local LLM coding agent, Ollama coding agent, LM Studio coding assistant, OpenAI-compatible coding agent, AI browser automation Firefox, desktop automation AI agent, multi-agent coding swarm, MCP coding agent, agentic AI developer tools, AI bug bounty assistant, autonomous coding agent.

AlphaCode is MIT licensed and built with Rust by Ali Essam.