Amp is an agentic coding tool, in research preview from Sourcegraph. This is the CLI for Amp. You can also use Amp in VS Code.
npm install -g @sourcegraph/amp
# or
yarn global add @sourcegraph/amp
# or
pnpm add -g @sourcegraph/amp
Then run:
amp
See Amp Owner's Manual for more information about Amp.
The first time you run amp
, you'll authenticate via ampcode.com. Your threads will be synced and shareable, and you don't need to provide your own API keys for LLM inference.
If you can't sign in with the web-based flow, you may also use an Amp API key as an environment variable:
- Go to ampcode.com/settings to get your Amp API key.
- Set it as an environment variable:
export AMP_API_KEY=your_amp_api_key_here
Settings are read from ~/.config/amp/settings.json
(or $XDG_CONFIG_HOME/amp/settings.json
if defined). This is a JSON file that uses the same properties as in the Amp VS Code extension. See the Amp Owner's Manual for more information.