Amp Code: install, sign in, pricing and Claude Code
Amp, the coding agent spun out of Sourcegraph: install the CLI, sign in on a server with AMP_API_KEY, what it costs, its model selector and execute mode.
Amp is a coding agent made by Amp, the company that spun out of Sourcegraph in December 2025. It runs in a terminal, desktop and phone apps and the web, and picks between several labs’ models (new threads start on Claude Opus 5.5 as of November 2026). Install the CLI on macOS, Linux or WSL with curl -fsSL https://ampcode.com/install.sh | bash, then run amp login. On a server with no browser, or in a script, set AMP_API_KEY to an access token from your Amp settings instead. Amp itself is free when you bring your own ChatGPT or Claude subscription or API keys; otherwise you pay for model use with credits at the providers’ prices, or take the $20 a month Megawatt plan.
What Amp is now
Amp started inside Sourcegraph, which is why its old npm package and many older posts carry that name. On December 2, 2025 its makers wrote: “Amp is becoming a separate company. We’re spinning out of Sourcegraph to become an independent research lab.” Its site now calls it a “coding agent and dev environment built for the frontier”, with apps for Mac, Windows, Linux, iPhone, iPad and Android beside the web and the terminal.
Three words come up everywhere in its docs. A thread is one conversation with the agent, saved and shareable. An orb is, in the docs’ words, one of the “cloud sandboxes where Amp agents work without using your computer”, counted in minutes while they run. A runner is a machine of yours that takes threads started from ampcode.com or the apps, so a server you already have can do the work an orb would.
Install the Amp CLI
The CLI docs support macOS, Linux and Windows through WSL. The recommended install is the script:
curl -fsSL https://ampcode.com/install.sh | bash
amp versionCopiedSince May 2026 the CLI is a single compiled executable rather than a JavaScript package, and it updates itself in the background (amp update checks by hand; AMP_SKIP_UPDATE_CHECK=1 turns the check off). The npm package still exists under its new name, for teams that install through an internal npm mirror:
npm install -g @ampcode/cliCopiedThe old name, @sourcegraph/amp, now only says “Renamed to @ampcode/cli”; if you installed it that way, Amp’s note on the change says to run npm uninstall -g @sourcegraph/amp and use the script. On November 28, 2026 the registry’s version was 0.0.1795896033-g3a2de8, with builds for Linux and macOS on x64 and arm64 and for Windows on x64.
Sign in, on a laptop and on a server
amp login adds an account and makes it active; amp account list and amp account switch move between several, and amp logout removes one. The CLI keeps the sign-in in ~/.local/share/amp/secrets.json. The quickstart also offers Sign in with ChatGPT, an optional step that links a ChatGPT Plus or Pro plan so OpenAI models bill to it.
On a machine with no browser, Amp’s orb docs give the alternative directly: “on a machine without a browser set AMP_API_KEY to an access token.” The token comes from Settings, under Security, on ampcode.com, and starts with sgamp_. It is the only route for scripts: the execute-mode docs say:
The CLI rejects the short-lived session token that `amp login` stores, because it expires within an hour and cannot be refreshed from an environment variable.CopiedAn export AMP_API_KEY=… typed at the prompt lands in your shell history. To keep the token out of it, store it in a file only you can read and load it from your shell’s start-up file:
mkdir -p ~/.config/amp
read -rsp 'Amp access token: ' t; echo
(umask 077; printf '%s\n' "$t" > ~/.config/amp/access-token); unset t
echo 'export AMP_API_KEY="$(cat ~/.config/amp/access-token)"' >> ~/.bashrcCopiedWhile AMP_API_KEY is set it takes precedence over any account saved by amp login, until you unset it. If a token leaks, Amp’s security page describes revoking it, which issues a replacement you then copy from Security Settings. For a pipeline that should run as your workspace rather than as you, the docs point to a service account’s API key.
What Amp costs
Amp’s free offer changed more than once in 2026. In March, Amp Free dropped its ads (“When you use Amp Free, you won’t see ads anymore”) while keeping a $10 daily grant for most users, and in May it began “pausing or reducing further Amp Free’s daily allowance for more users.” In September came the model that holds now, in its own words: “Amp is now free to use when you bring your own compute and model subscriptions/keys.” As listed on the pricing page on November 28, 2026:
| Tier | Price | What it adds |
|---|---|---|
Hobby | Free | Every feature; your ChatGPT, Claude and other subscriptions; your own API keys; unlimited runners and self-hosted orbs; Amp-hosted orbs pay as you go |
Megawatt | $20 a month ($10 for students and teachers) | Included agent usage, 45,000 minutes of Amp-hosted orbs, your own domains for portals |
Megawatt 50 | $50 a month | 2.5 times Megawatt’s included agent and orb usage |
Teams | No extra charge | Shared billing and pooled credits, SSO, shared threads; members on their own tiers |
Enterprise | Custom | Pooled credits only, directory sync, spend limits, audit logs |
Model use that none of your own subscriptions or keys covers is paid in Amp credits, which “require no paid tier or commitment”, carry no markup on providers’ API prices for individuals and non-enterprise workspaces, and expire twelve months after purchase. Web search and the other non-model tools also use credits. A linked subscription counts against that plan’s own limits instead. Amp tries your personal connections first, then your workspace’s, then bills Amp credits.
Modes and models
Older guides describe Amp’s modes, most recently a Dial with four settings, low, medium, high and ultra. On November 12, 2026 Amp retired it: “A model selector takes its place.” New threads start on Staff Pick, which the team describes as “the model we would pick ourselves, which is Claude Opus 5.5 today”. Press Ctrl+S to change model, or set it per run:
amp -x "Review this repository" --model openai/gpt-6-astra --effort xhighCopiedYou can switch mid-thread, but the next message costs more, because “A prompt cache belongs to one model.” --fast turns on Fast mode for one run.
Settings, MCP servers and AGENTS.md
| Path | What it holds |
|---|---|
~/.config/amp/settings.json (or .jsonc) | Your settings, including MCP servers under amp.mcpServers |
.amp/settings.json | A project’s settings, the nearest one at or above the working directory |
/etc/ampcode/managed-settings.json | Settings an administrator manages, on Linux |
~/.local/share/amp/secrets.json | The saved sign-in |
~/.config/amp/AGENTS.md | Instructions for every project |
MCP servers are added with amp mcp add, a local one by its command and a remote one by its URL:
amp mcp add context7 -- npx -y @upstash/context7-mcp
amp mcp add linear https://mcp.linear.app/sseCopiedIn the file, a local server has command, args and env, and a remote one url and headers, with ${VAR_NAME} for values taken from the environment. A server defined in a project’s .amp/settings.json does not run until you approve it with amp mcp approve. A remote server that signs in with OAuth opens its sign-in page in a browser when Amp starts. On a runner, the sign-in happens in a dialog on ampcode.com instead; if you open the link on another device, the browser ends on a localhost page that fails to load, and you paste that page’s full URL into the dialog.
Amp reads AGENTS.md in the working directory and its parents, and falls back to AGENT.md or CLAUDE.md where a directory has no AGENTS.md, so a repository set up for Claude Code works without changes. The AGENTS.md guide covers what to put in one.
Execute mode, for scripts and cron
-x (or --execute) sends one prompt, waits for the agent to finish its turn, prints the final message and exits. Piping input in, or redirecting the output to a file, does the same:
amp -x "what files in this folder are markdown files? Print only the filenames."
echo "what is 2+2?" | amp > response.txt
amp -x "summarize this repo" --stream-jsonCopiedIt exits 0 when the agent finishes, and 1 when Amp cannot be reached, the agent stops on an error, a tool call needs approval, or the process is interrupted. With --stream-json the last line of a failed run is a result message with is_error: true. Use -ox instead of -x to run the prompt in an orb on Amp’s servers.
One thing to know before you run it unattended: the tools docs say “By default, Amp does not ask for approval before running tools.” The agent runs shell commands as your user without asking, so give it a user and a machine whose reach you are content with, and add a permissions plugin if you want it to stop and ask.
Amp on a server of your own
There are two ways to use a server with Amp. The first is the ordinary one: SSH in, run amp inside tmux so the session survives a dropped connection, and sign in with AMP_API_KEY. The second makes the server a runner, so threads you start from the web or the phone app run there:
cd ~/code
amp --no-tui --runner-id my-serverCopiedBy default the runner serves threads in the directory it was started in. The pricing page lists runners as free, and the docs ask you to keep a runner running and its computer awake while orbs use it. Starting it with --share offers it to your whole workspace, and before it starts it warns that workspace members “will be able to run code on the machine as you”. Choosing the machine itself is the same question for every agent; the guide to a VPS for a coding agent covers it.
Amp beside Claude Code and Codex
Claude Code is Anthropic’s agent and Codex is OpenAI’s; each is built around its own lab’s models and sign-in. Amp sits across them. As of November 2026 its default is a Claude model, it lists OpenAI’s and others beside it, and it can bill each to the subscription you already pay for: a ChatGPT plan for OpenAI models, a Claude plan for Claude models. With a Claude subscription linked, Amp also offers Claude Code itself as an agent in its selector, whose responses, the docs note, “take longer to start”. What Amp adds on top is its own: shared threads, orbs and runners, and the apps, with the agent itself free when you bring the models.
On the Claude plan route, Anthropic has its own words. Its legal page says subscription sign-in is “designed to support ordinary use of Claude Code and other native Anthropic applications”, does not permit third-party developers to “route requests through Free, Pro, Max, or Ultra plan credentials on behalf of their users”, and does not prevent “an end user from signing in to the unmodified Claude Code binary with their own Claude subscription.” It names no particular tool, so which side of that line a given route in Amp falls on is Anthropic’s call; a Claude API key, or Amp’s own credits, avoids the question. How other agents handle it is in using a Claude subscription in Hermes, Pi and OpenCode.
If you want one lab’s agent at its source, start from installing Claude Code, or read Codex against Claude Code for how those two differ. The Claude Code alternatives guide sets the rest of the field side by side.