Skip to content
dragonked2Public

About

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.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

409 stars

Watchers

2 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

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

AlphaCode: Open-Source AI Coding Agent for Your Terminal

Built in Rust. Understands your codebase, edits files, runs commands and tests, drives Firefox, controls desktop apps, and verifies its own work.

Works with Claude, GPT, Gemini, GitHub Copilot, OpenRouter, and local models (Ollama, LM Studio). Start free, no API key required.

GitHub stars Latest release MIT license Open issues

Windows macOS Linux Rust 40+ tools Free to start

Quick start · Demo · Features · Docs · Website · Releases · Firefox Agent · Report a bug


Install in 30 seconds

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 run alphacode doctor and alphacode. Full walkthrough in the Quick start.

Find what you need

I want to… Go to
Try AlphaCode in under two minutes Quick start
See it in action Demo
Understand what it can do Features
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
Fix an install or setup problem Troubleshooting
Remove AlphaCode cleanly Uninstall
Help improve the project Contributing
Full table of contents

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

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

The workflow is understand, plan, execute, observe, verify, and it ends with a report of what changed, what was checked, and what remains.

Why developers choose AlphaCode

Lightweight A native Rust binary with a small memory footprint (see Benchmarks)
Model-agnostic Claude, GPT, Gemini, Copilot, Cursor, Bedrock, Azure, OpenRouter, or any OpenAI-compatible endpoint
Beyond the editor Drives a real Firefox session and native desktop apps, not only files and shells
Verifies its work Runs tests, reviews its own diff, and reports evidence
Resumable Sessions survive terminal restarts, crashes, and dropped SSH connections
Extensible Skills, MCP servers, hooks, and multi-agent swarms
Free to start A built-in free AI lane works without an API key
Open source MIT licensed

Example tasks

Use plain English or precise technical instructions.

Debug and fix a regression
Find why the app crashes when users upload a PDF.
Fix the root cause, add a regression test, run the relevant tests, and review the final diff.
Test a web application
Open the application in Firefox, go to the account settings page,
check that the new feature is visible, and capture a screenshot.
Investigate a security issue
Trace untrusted input to sensitive operations, validate likely findings,
and report which issues are reproducible in this authorized test environment.

Advanced workflows can combine multiple agents, reusable skills, and MCP-connected tools.

Demo

A walkthrough from installation to a first task. Click the image to open the SVG at full size.

AlphaCode demo: terminal AI coding agent going from install to a first completed task

If the image does not render in a third-party viewer, open the SVG directly.

Quick start

Four steps from zero to your first task.

1. Install

Use the one-line installer from Install in 30 seconds.

Tip

In security-conscious environments, download and inspect the installer before running it. See Installation options for version pinning, PATH control, and source builds.

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.

2. Check your setup and launch

alphacode doctor
alphacode

alphacode doctor checks your environment and reports common setup issues. The built-in free AI lane 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.

3. Give it a task

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"

4. Optional: connect Firefox

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.

Features

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 Supports continuity during longer workflows
Skills and MCP Adds reusable workflows and connections to external tools and services
Model choice Supports multiple hosted providers and OpenAI-compatible endpoints
Cross-platform Supports 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 quality assurance

Combine web tools with a real browser to inspect dynamic pages, fill forms, validate user flows, capture screenshots, and support web application QA. Browser automation is especially useful when a page depends on JavaScript or an existing authenticated session.

Firefox browser automation

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

Browser automation helps with:

  • JavaScript-heavy sites and dynamic interfaces
  • DOM inspection, form entry, and interactive controls
  • Tabs, frames, and embedded content
  • Existing authenticated sessions
  • Scrolling, navigation, screenshots, and downloads
  • Browser-based testing, QA, and web application debugging
  • Security testing of systems you own or are explicitly authorized to assess

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.

Desktop automation

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 Desktop automation is unavailable.

Swarm mode

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

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.

Sessions and memory

Persistent sessions preserve context across terminal restarts and support longer debugging, research, security-review, and refactoring workflows.

alphacode sessions list      # List saved sessions
alphacode --resume           # Resume the latest session
alphacode --resume <id>      # Resume a specific session

Project memory supports continuity during longer workflows. Use /memory inside AlphaCode to manage or inspect it.

Models and providers

AlphaCode is model-agnostic. Start with the built-in free AI lane, or connect a provider using the authentication method it supports.

Provider Authentication or requirement Notes
Built-in free AI lane Built in Designed to work without an API key
Anthropic (Claude) OAuth or API key Provider support is built in
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 when required
Azure Azure AD or API key Build with --features azure-auth when required
OpenRouter API key Access to a wide range of models
OpenAI-compatible endpoint Endpoint-specific key or configuration Add with alphacode provider add <name>

Provider and model commands

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.

Local models (Ollama, LM Studio, and other OpenAI-compatible servers)

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.

Authentication notes

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: AlphaCode uses a local callback at http://localhost:1455/auth/callback during sign-in. Make sure port 1455 is free. If the login flow times out, check whether another process is listening on that port, then retry /login.

See the documentation for provider-specific setup and troubleshooting.

Built-in tools, skills, and MCP

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

Skills add reusable, specialized workflows without changing the core agent. Browse them with /skills. Examples from the project include /bugbounty, /meme-coin-audit, and /frontend-design.

Model Context Protocol (MCP)

MCP support lets you connect external tools, services, and custom integrations. See the project documentation for the configuration each server requires.

Security testing and bug bounty workflows

Code analysis, HTTP tools, browser automation, terminal execution, memory, and multi-agent workflows can support repeatable application-security reviews.

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.

Safety and reliability

An agent that can change files, execute commands, and operate applications needs careful oversight. The project describes these safeguards:

  • Blocking certain destructive filesystem and device targets
  • Permission prompts for risky actions
  • Safety controls for shell execution
  • SSRF and credential-leak heuristics for network operations
  • Tracking interrupted sessions rather than silently losing them
  • Timeouts and emergency-stop handling for desktop automation
  • Input-state cleanup when operations fail
  • Treating browser and desktop content as potentially untrusted

Warning

These safeguards reduce risk; they do not guarantee that every action is safe or correct. Review important diffs before merging or deploying. Use /diff to 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 follow these guardrails:

  1. Small changes: avoid bundling unrelated edits, and report adjacent issues separately.
  2. Regression awareness: rerun relevant tests and investigate new warnings or failures.
  3. Self-review: check that the objective is covered, evidence is available, regressions are considered, the diff is scoped, and edge cases are reviewed.
  4. Structured reporting: state what changed, what was verified, and what remains.

The agent's instructions are not a substitute for independently reviewing the implementation and test results.

Benchmarks

AlphaCode is written in Rust and designed to keep runtime overhead modest.

Note

These are historical measurements, not a current independent benchmark or a guarantee of performance on every machine or workload. Competing tools change quickly, so re-measure before drawing conclusions.

Memory usage: one active session

Tool RAM Relative to AlphaCode
AlphaCode 27.8 MB 1.0×
Codex CLI 140.0 MB 5.0×
pi 144.4 MB 5.2×
Cursor Agent 214.9 MB 7.7×
Antigravity CLI 243.7 MB 8.8×
GitHub Copilot CLI 333.3 MB 12.0×
OpenCode 371.5 MB 13.4×
Claude Code 386.6 MB 13.9×

Memory usage: ten concurrent sessions

Tool RAM Relative to AlphaCode
AlphaCode 117.0 MB 1.0×
Codex CLI 334.8 MB 2.9×
pi 833.0 MB 7.1×
Antigravity CLI 1,021.2 MB 8.7×
Cursor Agent 1,632.4 MB 14.0×
GitHub Copilot CLI 1,756.5 MB 15.0×
Claude Code 2,300.6 MB 19.7×
OpenCode 3,237.2 MB 27.7×

Reproducing a comparison

Compare tools under the same conditions and record:

  • AlphaCode version or commit
  • OS, CPU, and RAM
  • Build profile and enabled features
  • Number of concurrent sessions
  • Measurement method and warm/cold state
  • The exact workload

Installation options

The quick-start commands use the latest installer. This section covers optional flags and source builds. Inspect remote scripts before running them if your environment requires manual review.

Windows

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

The installer:

  • detects your CPU architecture and downloads a release;
  • verifies the release's SHA-256 checksum;
  • installs alphacode.exe under %LOCALAPPDATA%\Programs\alphacode\bin\;
  • adds that folder to the current user's Path and activates it in the current shell;
  • needs no administrator rights for the user-level install.
How the Windows PATH change works

The installer writes the user-level HKCU\Environment\Path rather than the machine-wide path. It appends its entry, avoids duplicates on re-run, and broadcasts WM_SETTINGCHANGE so new terminals can pick up the change. Existing shell-only PATH entries are preserved.

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
Windows examples with parameters
$installer = [scriptblock]::Create((irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1))

# Pin a release version
& $installer -Version vX.Y.Z

# Build from source instead of downloading a release
& $installer -FromSource

# Preview the PATH change without writing it
& $installer -PathDryRun

# Do not modify PATH
& $installer -NoPath

# Choose a custom installation prefix
& $installer -Prefix "$env:LOCALAPPDATA\Programs\alphacode"

Run one parameter at a time, or combine them in a single call such as & $installer -Version vX.Y.Z -NoPath. Replace vX.Y.Z with a real tag from the releases page.

macOS and Linux

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. It is documented as supporting bash, zsh, fish, nushell, csh, and ksh, and 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
macOS / Linux examples with options
# 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

Verify installation

alphacode --version
alphacode doctor

On Windows you can also check command resolution:

Get-Command alphacode

Build from source

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.

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.

Update

alphacode update

Configuration

AlphaCode stores its configuration, sessions, and logs outside the project directory.

OS Configuration Sessions Logs
Linux ~/.config/alphacode/ ~/.local/share/alphacode/sessions/ ~/.local/share/alphacode/logs/
macOS ~/Library/Application Support/alphacode/ ~/Library/Application Support/alphacode/ ~/Library/Application Support/alphacode/
Windows %APPDATA%\alphacode\ %LOCALAPPDATA%\alphacode\sessions\ %LOCALAPPDATA%\alphacode\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

See docs/configuration.md for the full reference.

Commands and shortcuts

CLI commands

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 sessions list List saved sessions
alphacode --resume [id] Resume the latest session, or a specific one
alphacode --version Show the installed version
alphacode update Update AlphaCode

Slash commands

Command Purpose
/help Show help
/login Sign in to a provider from inside AlphaCode
/agents Manage agents
/swarm "<goal>" Split a large goal across multiple agents
/compact Compact context
/memory Manage or inspect project memory
/skills Browse skills
/diff Review changes
/poke Trigger an automatic follow-up
/screenshot-mode Configure screenshot capture
/exit Exit while preserving the session

Keyboard shortcuts

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
/model Open the model and provider picker
Shift+Tab Cycle favorited models

Troubleshooting

Start with alphacode doctor, which catches most setup problems. Then find your symptom below.

alphacode command not found

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

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

Then confirm that the AlphaCode Browser Agent extension is installed and enabled in Firefox.

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

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.

The demo image does not display

The demo asset is alphacode-demo.svg, not a video. Confirm that the file is committed at the repository root and that its filename capitalization matches the link. You can also open the SVG directly.

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.

Uninstall

Close active AlphaCode sessions first. On Windows, a running alphacode.exe cannot be removed until its process exits.

Recommended: uninstall script

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

By default the scripts remove the installed executable and leave your configuration and saved sessions in place.

Remove all local data

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

Manual uninstall

Item Linux macOS Windows
Binary ~/.local/bin/alphacode ~/.local/bin/alphacode %LOCALAPPDATA%\Programs\alphacode\
Config ~/.config/alphacode/ ~/Library/Application Support/alphacode/ %APPDATA%\alphacode\
Sessions ~/.local/share/alphacode/sessions/ Application Support directory %LOCALAPPDATA%\alphacode\sessions\
Logs ~/.local/share/alphacode/logs/ Application Support directory %LOCALAPPDATA%\alphacode\logs\

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
# Optional: remove configuration, sessions, and logs
rm -rf ~/.config/alphacode ~/.local/share/alphacode

macOS

rm -f ~/.local/bin/alphacode
# Optional: remove configuration and local data
rm -rf "$HOME/Library/Application Support/alphacode"

Windows (PowerShell)

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\Programs\alphacode"
# Optional: remove configuration and local data
Remove-Item -Recurse -Force "$env:APPDATA\alphacode", "$env:LOCALAPPDATA\alphacode"

If you installed with cargo install --path ., run cargo uninstall alphacode. If you built from a clone, delete the cloned repository separately.

Additional cleanup

  • PATH entry: remove the AlphaCode entry from your shell profile or user PATH. On Windows, use the Environment Variables dialog so %USERPROFILE%-style entries are not expanded unintentionally.
  • Firefox extension: open about:addons, select AlphaCode Browser Agent, and choose Remove.
  • Native messaging registration: if you ran alphacode browser setup, remove the AlphaCode registration after checking its exact name:
    • Linux: files in ~/.mozilla/native-messaging-hosts/
    • macOS: files in ~/Library/Application Support/Mozilla/NativeMessagingHosts/
    • Windows: a registry key under HKCU\Software\Mozilla\NativeMessagingHosts (remove it with Registry Editor or Remove-Item -Path "HKCU:\Software\Mozilla\NativeMessagingHosts\<name>")
  • Credentials: remove exported *_API_KEY variables, and revoke provider API keys or OAuth grants you no longer need.
  • Scheduled jobs: remove any recurring tasks created with cron or schedule before deleting local application data.

Verify removal

command -v alphacode

On Windows:

Get-Command alphacode -ErrorAction SilentlyContinue

If the shell still finds the command, open a new terminal or refresh the shell's command cache.

FAQ

Is AlphaCode free?

AlphaCode is open source under the MIT License and includes a built-in free AI lane for getting started without an API key. Third-party model providers may impose their own usage limits, terms, or charges.

Do I need an API key?

Not to get started with the built-in free AI lane. Other providers may require sign-in, API keys, or additional configuration.

What is the best way to try AlphaCode?

Install it, run alphacode doctor, launch alphacode in a project folder, and ask it to explain the project. Then try a small, low-risk fix such as a failing test.

Which operating systems are supported?

Windows, macOS, and Linux. Individual features and desktop automation backends vary by operating system and build configuration.

Can AlphaCode use Claude, GPT, Gemini, or local models like Ollama?

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.

Can AlphaCode automate websites?

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.

Can AlphaCode control desktop applications?

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.

Is AlphaCode suitable for beginners?

You can start with plain-English instructions. Review code changes and actions carefully, particularly before deploying software or running sensitive operations.

Can I use AlphaCode for security testing?

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.

Does AlphaCode remember previous work?

Persistent sessions and project memory support longer workflows across terminal restarts. Use alphacode sessions list and alphacode --resume to continue saved work.

How do I update AlphaCode?

Run alphacode update.

Use cases

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

Documentation and project links

Security reporting

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.

Contributing

Issues, reproducible bug reports, documentation updates, 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

Before opening a pull request, check that:

  • The release build succeeds
  • Relevant tests pass
  • New behavior includes tests where appropriate
  • Clippy passes
  • Public APIs are documented
  • New dependencies are justified
  • User-visible changes are documented

Read CONTRIBUTING.md before submitting a change.

Support AlphaCode

If AlphaCode saves you time, star the repository, report reproducible bugs, suggest improvements, improve the docs, test releases, or contribute code. Sharing it with a teammate helps too.

Star AlphaCode on GitHub Get the Firefox Browser Agent Support the project

Built with Rust by Ali Essam · MIT licensed · Open source

About

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.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

409 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages