Amp CLI
Amp is an agentic coding tool built by Sourcegraph. It runs in VS Code (and compatible forks like Cursor, Windsurf, and VSCodium) and as a command-line tool. It's also multiplayer — you can share threads and collaborate with your team.
Installation
Install globally with your preferred package manager:
pnpm add -g @sourcegraph/amp
# or
yarn global add @sourcegraph/amp
# or
npm install -g @sourcegraph/amp
Alternatively, run without installing:
npx @sourcegraph/amp
Usage
After installation, run:
amp
See Amp Owner's Manual for more information about Amp.
Authentication
Option 1: Interactive Login (Recommended)
The first time you run amp
, use the login command to authenticate via ampcode.com:
amp login
This opens your browser to complete authentication. Your threads will be synced and shareable across all clients.
Option 2: API Key Environment Variable
If you can't use the interactive flow, set your API key as an environment variable:
- Go to ampcode.com/settings to get your API key
- Set it in your environment:
export AMP_API_KEY=your-api-key-here
Proxies and Certificates
The Amp CLI supports proxy servers and custom certificates for corporate environments. See the Proxies and Certificates section in the Amp Owner's Manual for configuration details.
Configuration
For detailed configuration options including all available settings, see the Configuration Settings section in the Owner's Manual.