alphacode

dragonked2MIT活跃维护

用 Rust 写的免费 MIT 协议 AI 编程助手,内置免费模型无需 API key,也能接入 Claude、GPT、Gemini、DeepSeek、Ollama 等 50 多家模型,支持多智能体协作和浏览器、桌面自动化。

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.

v1.0.99发布于 2026-11-08 16:24 UTC579star +10 / 7 天31fork同步于 2026-11-10 11:58 UTC

怎么上手

由 README 提炼,执行前请确认
curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash
alphacode doctor && alphacode
硬件要求按 README 说明

README 未说明具体显存或 GPU 要求;支持 Windows、macOS、Linux,为原生 Rust 二进制,主打小内存占用。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Rust 写的终端 AI 编码代理,能改代码跑测试,还能驱动 Firefox 和桌面应用

用 Rust 写的免费 MIT 协议 AI 编程助手,内置免费模型无需 API key,也能接入 Claude、GPT、Gemini、DeepSeek、Ollama 等 50 多家模型,支持多智能体协作和浏览器、桌面自动化。

核心能力

  • 在终端内理解仓库、规划任务并直接编辑文件
  • 运行命令与测试,自查 diff 并汇报验证证据
  • 通过 Firefox 扩展经原生消息驱动真实浏览器会话
  • 用平台无障碍 API 操作原生桌面应用
  • Swarm 模式把任务拆给多个代理并行执行

容易踩的坑

Windows 上需在 Windows Terminal 或 PowerShell 中运行,双击 alphacode.exe 会随进程退出关闭窗口;浏览器自动化需另装 Firefox 的 AlphaCode Browser Agent 扩展并执行 alphacode browser setup;内置免费模型可直接用,但接入 Claude、GPT 等提供商需自备凭据并可能产生费用。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.0.99
  1. v1.0.99最新正式版2026-11-08 · 2026-11-08 16:24 UTC
  2. v1.0.982026-11-08 · 2026-11-08 02:58 UTC
    查看更新说明
  3. v1.0.97Release 1.0.972026-11-07 · 2026-11-07 12:38 UTC
    查看更新说明

    Release 1.0.97

    Added

    • Automatic in-session update checks: every 30 minutes the release build polls GitHub for a newer release while a session is open, going through the same ReadyToReload path as the startup background check so users never have to type /update. Dev/checkouts return NotAReleaseBuild/RunningFromCheckout and never download.

    Fixed

    • Typing no longer runs image-path promotion on every keystroke; promotion now happens on Enter/submit only, so text input is allocation-free.
    • Undo snapshots are throttled during rapid typing (~100ms) instead of cloning the whole draft on every key.
    • Inline model picker fuzzy re-score is debounced (50ms) so rapid keystrokes don't re-scan all entries on every key.
  4. v1.0.96Release 1.0.962026-11-05 · 2026-11-05 22:23 UTC
    查看更新说明

    [1.0.96] - 2026-11-05

    Fixed

    • Restore input responsiveness on Windows. 1.0.95 pinned the eitsupi/crossterm feature/windows-vt-input fork (upstream PR #1030) via [patch.crates-io] so Windows Terminal's native Ctrl+V paste would arrive as one Event::Paste. That fork replaces the entire crossterm event reader: once bracketed paste is enabled (alphacode keeps it enabled for the whole session), Windows delivers every key record through a new VT/ANSI parser instead of the long-stable Win32 ReadConsoleInput path. On Windows that affected all input at once - ordinary typing, Ctrl+Backspace, and the model/provider pickers all felt laggy, exactly the regression users reported after 1.0.92. The [patch.crates-io] override is removed, so the TUI links stock crates.io crossterm 0.29 again. Ctrl+V/Alt+V paste never depended on the fork's Event::Paste: it is served by alphacode's own asynchronous arboard clipboard read. The debug-only call sites that used the fork's MouseEvent::new constructor now build the stock public-field struct through tui::mouse_event.
    • Console typing no longer runs image-path promotion on every keystroke. promote_dropped_images was invoked from handle_text_input for each printable character, allocating a trimmed copy of the full draft and calling path.is_file() on path-like input each time. Promotion already happens on Enter (handle_enter) and submit (submit_input), where it matters before command/skill routing, so the per-keystroke call is removed. Typing is now allocation-free and avoids repeated filesystem stat calls.

    Added

  5. v1.0.95AlphaCode v1.0.952026-11-05 · 2026-11-05 18:33 UTC
    查看更新说明

    AlphaCode 1.0.95 improves terminal responsiveness, model selection, swarm scheduling, and build reuse.

    • Remove typing-speed paste inference and input settling delays. Ordinary keys pass through immediately; pasted content arrives as one draft.
    • Support native Windows Terminal bracketed paste with a pinned upstream Crossterm VT-input fix. Keep Windows Terminal’s Ctrl+V binding unchanged; app-delivered Ctrl+V and Alt+V share the asynchronous clipboard action.
    • Show Alphax Free under its own provider and display Model → Alphax Free, without OpenRouter/auto routing details or unsupported effort variants.
    • Discard pending model-picker loads on dismissal and cache free-pool usage totals instead of rebuilding the ledger on every redraw.
    • Restore swarm capacity progressively after rate limits, and reduce allocations in summaries, ancestry checks, and RPC routing.
    • Align DragonMeta and OpenAI Pro effort choices with their runtimes; show low/disabled effort explicitly.
    • Preserve joined emoji in swarm cards, remove redundant ZIP backends, and improve native/Alpine build-cache reuse.
    • Fix fresh-runner catalog expiry, macOS stream cancellation, and cold Windows Go-test failures.
    • Include all in-flight bundled hunting-intelligence skill updates.

    Default normal/build dependency graphs contain 398 Windows, 440 Linux, and 404 macOS packages. Platform differences reflect platform dependencies.

    See the performance and build audit for measurements and limitations. Release publication requires green CI for the exact source commit and all eight platform archives.

    Validation: 6,564 local library tests passed (12 ignored), plus 183 Windows input dependency tests and four diagnostic tests. Formatting, workspace/test compilation, and Clippy passed. CI and all-platform release builds verify commit e40566e.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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. On Windows, alphacode --gui opens the desktop interface. Full walkthrough in the Quick start.

    Find what you need

    I want to…Go to
    Try AlphaCode in under two minutesQuick start
    See it in actionDemo
    Understand what it can doFeatures
    Use Claude, GPT, Gemini, or a local modelModels and providers
    Automate a website in FirefoxFirefox browser automation
    Control a desktop applicationDesktop automation
    Run several agents in parallelSwarm mode
    Fix an install or setup problemTroubleshooting
    Remove AlphaCode cleanlyUninstall
    Help improve the projectContributing

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

    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

    LightweightA native Rust binary with a small memory footprint (see Benchmarks)
    Model-agnosticClaude, GPT, Gemini, Copilot, Cursor, Bedrock, Azure, OpenRouter, or any OpenAI-compatible endpoint
    Beyond the editorDrives a real Firefox session and native desktop apps, not only files and shells
    Verifies its workRuns tests, reviews its own diff, and reports evidence
    ResumableSessions survive terminal restarts, crashes, and dropped SSH connections
    ExtensibleSkills, MCP servers, hooks, and multi-agent swarms
    Free to startA built-in free AI lane works without an API key
    Open sourceMIT licensed

    Example tasks

    Use plain English or precise technical instructions.

    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.
    
    Open the application in Firefox, go to the account settings page,
    check that the new feature is visible, and capture a screenshot.
    
    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.

    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

    CapabilityWhat it does
    AI coding agentUnderstands natural-language tasks, plans multi-step work, edits code, and checks results
    Code and file toolsReads and writes files, applies targeted edits and patches, and searches code
    Terminal executionRuns commands, batches operations, and supports background jobs with safety controls
    Web toolsSearches, fetches, and analyzes web content and HTTP flows
    Firefox automationWorks with pages, DOM, forms, tabs, frames, screenshots, downloads, and existing sessions
    Desktop automationUses platform accessibility APIs to interact with native applications
    Swarm modeCoordinates multiple agents on work that can be split into independent tasks
    Persistent sessionsResumes work across terminal restarts
    Project memorySupports continuity during longer workflows
    Skills and MCPAdds reusable workflows and connections to external tools and services
    Model choiceSupports multiple hosted providers and OpenAI-compatible endpoints
    Cross-platformSupports 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"]
    

    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.

    PlatformAccessibility backend
    WindowsUI Automation
    macOSAccessibility API
    LinuxAT-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"]
    

    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.

    ProviderAuthentication or requirementNotes
    Built-in free AI laneBuilt inDesigned to work without an API key
    Anthropic (Claude)OAuth or API keyProvider support is built in
    OpenAI (GPT and o-series)OAuth, API key, or supported sign-in flowReasoning, vision, and tools depend on the selected model and flow
    Google GeminiOAuth or API key
    GitHub CopilotOAuthRequires an eligible account or subscription
    CursorOAuthReuses a Cursor session where supported
    AWS BedrockAWS credentialsBuild with --features bedrock when required
    AzureAzure AD or API keyBuild with --features azure-auth when required
    OpenRouterAPI keyAccess to a wide range of models
    OrcaRouterAPI key or browser login (OAuth 2.0 + PKCE)One gateway for many models; the model list is read from GET /v1/models, so the picker excludes models advertised only for non-chat tasks
    OpenAI-compatible endpointEndpoint-specific key or configurationAdd 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)

    For LM Studio, load a chat model and start Local Server on its default port (1234). Then run alphacode --provider lmstudio. AlphaCode asks http://localhost:1234/v1/models for the currently available models and picks the first chat model. To choose one explicitly, run alphacode --provider lmstudio --model <model-id> using the exact ID shown by LM Studio. For Ollama, start the server and run alphacode --provider ollama; you can also pass --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.

    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.

    CategoryExamples
    Filesread, write, edit, multiedit, patch, apply_patch, ls
    Searchalphagrep, session_search, conversation_search
    Executionbash, batch, bg
    Web and browserbrowser, webfetch, websearch, scrapling, httpflow, open
    Desktopdesktop, macos_computer_use
    Agent workflowmemory, initiative, todo, plan, swarm
    Utilitiesdoctor, 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.

    Use /add to browse files and folders in the current directory, or /add "path/to/my instructions.txt" to import a skill directly. The file can have any name or extension; its contents need YAML frontmatter with name and description, followed by the instructions. Imports are saved under ~/.alphacode/skills/ and appear immediately in /skills. Standard references/, scripts/, assets/, and agents/ folders beside the file are included; unrelated neighboring files are left behind. Existing installations are preserved.

    Use /add "path/to/plugin-folder" (or its plugin.json) for local Alphacode plugins. Plugin skills use the existing skills/<name>/SKILL.md layout. Importing does not run bundled scripts; executable plugin tools remain unsupported. Paths and installations belong to the machine running the terminal client. Activated skill instructions accompany the next connected user prompt; resource files and packages are not uploaded to separate remote servers.

    Model Context Protocol (MCP)

    MCP support lets you connect external tools, services, and custom integrations. Install reviewed, trusted server definitions in your user-level ~/.alphacode/mcp.json.

    Repository definitions in .alphacode/mcp.json, .mcp.json, .claude/mcp.json, and Claude per-project settings are listed but blocked from execution in both interactive and headless sessions. To enable one, review its command, arguments, and environment, install the trusted definition in your user-level config, and remove the project entry of the same name. Reload MCP or restart the session after updating the configuration.

    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

    ToolRAMRelative to AlphaCode
    AlphaCode27.8 MB1.0×
    Codex CLI140.0 MB5.0×
    pi144.4 MB5.2×
    Cursor Agent214.9 MB7.7×
    Antigravity CLI243.7 MB8.8×
    GitHub Copilot CLI333.3 MB12.0×
    OpenCode371.5 MB13.4×
    Claude Code386.6 MB13.9×

    Memory usage: ten concurrent sessions

    ToolRAMRelative to AlphaCode
    AlphaCode117.0 MB1.0×
    Codex CLI334.8 MB2.9×
    pi833.0 MB7.1×
    Antigravity CLI1,021.2 MB8.7×
    Cursor Agent1,632.4 MB14.0×
    GitHub Copilot CLI1,756.5 MB15.0×
    Claude Code2,300.6 MB19.7×
    OpenCode3,237.2 MB27.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.

    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:

    ParameterPurpose
    -Version vX.Y.ZPin a release version
    -FromSourceBuild from source instead of downloading a release
    -PathDryRunPreview the PATH change without writing it
    -NoPathDo not modify PATH
    -Prefix <dir>Choose a custom installation prefix
    -NoShortcutsDo not create Start-menu or Desktop shortcuts
    -NoDesktopShortcutCreate the Start-menu entry but not the Desktop one
    $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"
    
    # Skip the desktop/Start-menu shortcuts (headless or scripted installs)
    & $installer -NoShortcuts
    

    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.

    OptionPurpose
    --version vX.Y.ZPin a release version
    --no-pathDo not modify PATH
    --linkLink 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
    

    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.

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

    SectionPurpose
    [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

    Royal Gold is the default terminal look, with a matching palette for light terminal backgrounds. Use /theme to browse other 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.

    Commands and shortcuts

    CLI commands

    CommandPurpose
    alphacodeLaunch the interactive terminal UI
    alphacode doctorCheck setup and common environment issues
    alphacode loginAuthenticate with a provider
    alphacode run "<task>"Run a task non-interactively
    alphacode replStart the simple REPL without the TUI
    alphacode provider add <name>Add an OpenAI-compatible endpoint
    alphacode provider listList configured providers
    alphacode provider currentShow the active provider and model
    alphacode model listList available models
    alphacode model use <model>Select a model
    alphacode browser setupConfigure the browser bridge
    alphacode browser statusCheck browser connectivity
    alphacode sessions listList saved sessions
    alphacode --resume [id]Resume the latest session, or a specific one
    alphacode --versionShow the installed version
    alphacode updateUpdate AlphaCode

    Slash commands

    CommandPurpose
    /helpShow help
    /loginSign in to a provider from inside AlphaCode
    /agentsManage agents
    /swarm "<goal>"Split a large goal across multiple agents
    /copyCopy the full current session, including retained compacted history and tool exchanges, to clipboard
    /compactCompact context
    /memoryManage or inspect project memory
    /skillsBrowse skills
    /add [path]Browse and import a skill file of any name or a local plugin
    /diffReview changes
    /pokeTrigger an automatic follow-up
    /screenshot-modeConfigure screenshot capture
    /exitExit while preserving the session

    Keyboard shortcuts

    ShortcutAction
    F1Show shortcut reference
    Ctrl+TToggle queue mode
    Ctrl+YAccept the suggested fallback model after an error
    Ctrl+CInterrupt the current turn (quit when idle)
    EscClose a dialog or go back
    /modelOpen the model and provider picker
    Shift+TabCycle favorited models

    Troubleshooting

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

    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.

    alphacode browser status
    alphacode browser setup
    

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

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

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

    ItemLinuxmacOSWindows
    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

    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.

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

    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.

    Windows, macOS, and Linux. Individual features and desktop automation backends vary by operating system and build 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.

    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.

    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.

    You can start with plain-English instructions. 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 sessions list and alphacode --resume to continue saved work.

    Run alphacode update.

    Use cases

    AreaExamples
    Software developmentDebugging, refactoring, feature work, test generation, code review, repository exploration, documentation, build troubleshooting
    Web developmentFrontend and backend changes, API testing, browser-based testing, UI validation
    Application securityAuthorized penetration testing, bug bounty work, code audits, HTTP analysis, reproducible vulnerability reports
    QA and testingRegression testing, form validation, UI verification, reproducibility checks
    AutomationBrowser 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.

    Contributors

    Thanks to everyone who has contributed code, tests, or reviews to AlphaCode.

    • @levz0r — lifecycle hooks now inherit the attached client's terminal env (#20), so hooks target the pane a session is actually shown in.

    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