Amp is a frontier coding agent for your terminal and editor, built by Sourcegraph.
Amp has 2 modes: smart (unconstrained state-of-the-art model use) and free (free of charge, using fast basic models).
Want to go much deeper? Watch our Raising an Agent podcast that chronicles the first few months of building Amp, and see our FIF.
You’re ready to start using Amp!
Install the Amp CLI:
curl -fsSL https://ampcode.com/install.sh | bash Run interactively (will prompt for login on first run):
amp Install globally:
npm install -g @sourcegraph/amp@latest Run interactively (will prompt for login on first run):
amp Install globally:
pnpm add -g @sourcegraph/amp@latest Run interactively (will prompt for login on first run):
amp Install globally:
yarn global add @sourcegraph/amp@latest Run interactively (will prompt for login on first run):
amp Run interactively (will prompt for login on first run):
npx -y @sourcegraph/amp@latest Sign into ampcode.com/install and follow the instructions, or:
sourcegraph.amp extension from the VS Code Marketplace or Open VSX Registry.amp --jetbrains.amp --ide.Amp has two modes:
smart: Uses state-of-the-art models without constraints for maximum capability and autonomy. This is the default mode and uses paid credits.free: Free of charge, using fast basic models. See Amp Free for more details.Switch modes in the CLI with /mode smart or /mode free, or select the mode in the prompt field of the editor extension.
Amp currently uses Claude Sonnet 4.5 for most tasks, with up to 1 million tokens of context. For the best results, follow these guidelines:
AGENTS.md files to guide Amp on how to run your tests and build steps and to avoid common mistakes.The first prompt in the thread carries a lot of weight. It sets the direction for the rest of the conversation. We encourage you to be deliberate with it. That’s why we use Cmd/Ctrl+Enter to submit a message in Amp — it’s a reminder to put effort into a prompt.
Here are some examples of prompts we’ve used with Amp:
observeThreadGuidanceFiles return Omit<ResolvedGuidanceFile, 'content'>[] and remove that field from its return value, and update the tests. Note that it is omitted because this is used in places that do not need the file contents, and this saves on data transferred over the view API.” (See Thread)<build command> and fix all the errors”<local development server url> to see this UI component. Then change it so that it looks more minimal. Frequently check your work by screenshotting the URL”git diff — someone helped me build a debug tool to edit a Thread directly in JSON. Please analyze the code and see how it works and how it can be improved. […]” (See Thread)git diff --staged and remove the debug statements someone added” (See Thread)psql and rewire all the threads in the databaser to my user (email starts with thorsten)” (See Thread)Also see Thorsten Ball’s How I Use Amp.
If you’re in a workspace, use Amp’s thread sharing to learn from each other.
Amp looks in AGENTS.md files for guidance on codebase structure, build/test commands, and conventions.
| File | Examples |
|---|---|
AGENTS.mdin cwd, parent dirs, & subtrees | Architecture, build/test commands, overview of internal APIs, review and release steps |
$HOME/.config/amp/AGENTS.md$HOME/.config/AGENTS.md | Personal preferences, device-specific commands, and guidance that you're testing locally before committing to your repository |
Amp includes AGENTS.md files automatically:
AGENTS.md files in the current working directory (or editor workspace roots) and parent directories (up to $HOME) are always included.AGENTS.md files are included when the agent reads a file in the subtree.$HOME/.config/amp/AGENTS.md and $HOME/.config/AGENTS.md are included if they exist.If no AGENTS.md exists in a directory, but a file named AGENT.md (without an S) or CLAUDE.md does exist, that file will be included.
In a large repository with multiple subprojects, we recommend keeping the top-level AGENTS.md general and creating more specific AGENTS.md files in subtrees for each subproject.
To see the agent files that Amp is using, run /agent-files (CLI) or hover the X% of 968k indicator after you’ve sent the first message in a thread (editor extension).
Amp offers to generate an AGENTS.md file for you if none exists. You can create or update any AGENTS.md files manually or by asking Amp (“Update AGENTS.md based on what I told you in this thread”).
To include other files as context, @-mention them in agent files. For example:
See @doc/style.md and @specs/**/*.md.
When making commits, see @doc/git-commit-instructions.md. @~/some/path are also supported.@doc/*.md or @.agent/**/*.md).To provide guidance that only applies when working with certain files, you can specify globs in YAML front matter of mentioned files.
For example, to apply language-specific coding rules:
Put See @docs/*.md anywhere in your AGENTS.md file.
Create a file docs/typescript-conventions.md with:
---
globs:
- '**/*.ts'
- '**/*.tsx'
---
Follow these TypeScript conventions:
- Never use the `any` type
- ...Repeat for other languages.
Mentioned files with globs will only be included if Amp has read a file matching any of the globs (in the example above, any TypeScript file). If no globs are specified, the file is always included when @-mentioned.
Globs are implicitly prefixed with **/ unless they start with ../ or ./, in which case they refer to paths relative to the mentioned file.
Other examples:
globs: ["src/components/**", "**/*.tsx"]globs: ["server/**", "api/**"]globs: ["*.test.ts", "__tests__/*"]mv CLAUDE.md AGENTS.md && ln -s AGENTS.md CLAUDE.md, and repeat for subtree CLAUDE.md filesmv .cursorrules AGENTS.md && ln -s AGENTS.md .cursorrules and then add @.cursor/rules/*.mdc anywhere in AGENTS.md to include all Cursor rules files.mv AGENT.md AGENTS.md (optional - both filenames continue to work)Amp can dynamically adjust the thinking budget given to Claude Sonnet 4.5. The higher the budget, the more tokens it uses to “think”:
You can also try using the oracle to get GPT-5’s help on complex analysis and planning tasks that require deep reasoning.
Amp works best when you keep threads small and focused on a single task
To continue your work from one thread in a new thread, use the handoff command from the command palette to draft a new thread with relevant files and context from the original thread.
Provide some help to the handoff command to direct the new prompt. For example:
now implement this for teams as well, not just individual usersexecute phase one of the created plancheck the rest of the codebase and find other places that need this fixSee Handoff (No More Compaction) for why Amp doesn’t support compaction.
Amp supports image uploads, allowing you to share screenshots, diagrams, and visual references with the AI. Images can provide important context for debugging visual issues or understanding UI layouts.
In the editor extension, you can:
In the CLI, you can:
You can mention files in your prompts by typing @ followed by a fuzzy-search file pattern.
Editing a prior message in a thread automatically reverts any changes the agent made after that message.
To edit a prior message in the CLI, press Tab to navigate to prior messages. In the editor extension, scroll up in the thread and click on a prior message.
You can also revert individual file changes by clicking the N files changed indicator.
You can queue messages to be sent to the agent once it ends its turn, without interrupting its current work. To queue a message:
queue command from the command palette.Access custom commands via the Amp Command Palette: Cmd/Alt-Shift-A in VS Code/Cursor/Windsurf or Ctrl-O in the CLI.
You can create custom commands to reuse prompts and automate workflows.
To create a custom command, create a Markdown file or an executable in one of the following locations:
.agents/commands in the current workspace~/.config/amp/commands (uses the $XDG_CONFIG_HOME directory if set)Each file in these directories, if it’s a Markdown file ending in .md or an executable file (having the execute bit set or a shebang on the first line), will be turned into a custom command. The name of the command will be the filename without the extension.
When invoked, custom commands append their output to the prompt input. Markdown files append their contents directly. Executable files run and append their combined stdout/stderr output (max 50k characters). Executables can also take arguments which will be passed when invoked.
Here are two examples:
.agents/commands/pr-review.md will be turned into the custom command pr-review and the contents of pr-review.md will be inserted into the prompt input.~/.config/amp/commands/outline is an executable that will be turned into the custom command outline and can be used with arguments: outline src/utilsReal-world examples:
Amp Tab is our in-editor completion engine, designed to anticipate your next actions and reduce the time spent manually writing code. It’s only available in VS Code and forks thereof.
It uses a custom model that we’ve trained to understand what you are trying to do next, based on your recent changes, your language server’s diagnostics, and other semantic context.
Accept a suggestion with Tab, or reject with Esc.
| Command | Shortcut |
|---|---|
| New Thread | CmdL |
| Focus/Hide Amp Sidebar | CmdI |
| Switch to Thread | CmdK |
| Go to Next Thread | CmdShift] |
| Go to Previous Thread | CmdShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CmdOptionJ |
| Focus/Hide Amp Sidebar | CmdOptionU |
| Switch to Thread | CmdK |
| Go to Next Thread | CmdShift] |
| Go to Previous Thread | CmdShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CmdOptionJ |
| Focus/Hide Amp Sidebar | CmdOptionU |
| Switch to Thread | CmdK |
| Go to Next Thread | CmdShift] |
| Go to Previous Thread | CmdShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlL |
| Focus/Hide Amp Sidebar | CtrlI |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlAltJ |
| Focus/Hide Amp Sidebar | CtrlAltU |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlAltJ |
| Focus/Hide Amp Sidebar | CtrlAltU |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlL |
| Focus/Hide Amp Sidebar | CtrlI |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlAltJ |
| Focus/Hide Amp Sidebar | CtrlAltU |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
| Command | Shortcut |
|---|---|
| New Thread | CtrlAltJ |
| Focus/Hide Amp Sidebar | CtrlAltU |
| Switch to Thread | CtrlK |
| Go to Next Thread | CtrlShift] |
| Go to Previous Thread | CtrlShift[ |
Tools are what the underlying model uses to assist with tasks. For the highest quality results we recommend you use a curated set of tools, with prompts adjusted to fit the underlying model.
You can see Amp’s builtin tools by running amp tools list in the CLI or in the extension’s settings panel.
Toolboxes allow you to extend Amp with simple scripts instead of needing to provide an MCP server.
When Amp starts it invokes each executable in the directory indicated by AMP_TOOLBOX,
with the environment variable TOOLBOX_ACTION set to describe.
The tool is expected to write its description to stdout as a list of key-value pairs, one per line.
#!/usr/bin/env bun
const action = process.env.TOOLBOX_ACTION
if (action === 'describe') showDescription()
else if (action === 'execute') runTests()
function showDescription() {
process.stdout.write(
[
'name: run-tests',
'description: use this tool instead of Bash to run tests in a workspace',
'dir: string the workspace directory',
].join('\n'),
)
} When Amp decides to use your tool it runs the executable again,
setting TOOLBOX_ACTION to execute.
The tool receives parameters in the same format on stdin and then performs its work:
function runTests() {
let dir = require('fs')
.readFileSync(0, 'utf-8')
.split('\n')
.filter((line) => line.startsWith('dir: '))
dir = dir.length > 0 ? dir[0].replace('dir: ', '') : '.'
require('child_process').spawnSync('pnpm', ['-C', dir, 'run', 'test', '--no-color', '--run'], {
stdio: 'inherit',
})
} If your tool needs object or array parameters, the executable can write its tool schema as JSON
instead to stdout. In this case it’ll also receive inputs as JSON.
We recommend using tools to express specific, deterministic and project-local behavior, like:
See the Appendix for the full technical reference.
Amp can spawn subagents (via the Task tool) for complex tasks that benefit from independent execution. Each subagent has its own context window and access to tools like file editing and terminal commands.
Subagents are most useful for multi-step tasks that can be broken into independent parts, operations producing extensive output not needed after completion, parallel work across different code areas, and keeping the main thread’s context clean while coordinating complex work.
However, subagents work in isolation — they can’t communicate with each other, you can’t guide them mid-task, they start fresh without your conversation’s accumulated context, and the main agent only receives their final summary rather than monitoring their step-by-step work.
Amp may use subagents automatically for suitable tasks, or you can encourage their use by mentioning subagents or suggesting parallel work.
Amp has access to a powerful “second opinion” model that’s better suited for complex reasoning or analysis tasks, at the cost of being slightly slower, slightly more expensive, and less suited to day-to-day code editing tasks than the main agent’s model.
This model is available to Amp’s main agent through a tool called oracle, and it currently uses GPT-5, with reasoning level medium (which we’ve found to work well without taking an inordinate amount of time).
The main agent can autonomously decide to ask the oracle for help when debugging or reviewing a complex piece of code. We intentionally do not force the main agent to always use the oracle, due to higher costs and slower inference speed.
We recommend explicitly asking Amp’s main agent to use the oracle when you think it will be helpful. Here are some examples from our own usage of Amp:
foobar and barfoo are used. Then I want you to work a lot with the oracle to figure out how we can refactor the duplication between them while keeping changes backwards compatible.”See the GPT-5 oracle announcement for more information.
Amp can search remote codebases with the use of the Librarian subagent. The Librarian can search and read all public code on GitHub as well as your private GitHub repositories.
Tell Amp to summon the Librarian when you need to do cross-repository research, or, for example, when you want it to read the code of the frameworks and libraries you’re using. The Librarian’s answers are typically longer and more detailed as we built it to provide in-depth explanations. The Librarian will only search code on the default branch of the repository.
You need to configure a connection to GitHub in your settings to use it. If you want the Librarian to be able to see your private repositories, you need to select them when configuring your GitHub connection.
You might need to prompt the main agent explicitly to use the Librarian. Here are some examples:
foo service - were there any recent changes to the API endpoints I am using in bar? If so, what are they and when were they merged?”See the Librarian announcement for more information.
You can add additional tools using MCP (Model Context Protocol) servers, which can be either local or remote. These can be configured in amp.mcpServers in your configuration file. You can also press + Add MCP Server under Settings in the VS Code.
Configuration options for local MCP servers:
command - executableargs - command arguments (optional)env - environment variables (optional)Configuration options for remote (HTTP/SSE) MCP servers:
url - server endpointheaders - HTTP headers to send with requests (optional)Amp automatically detects the appropriate transport type (HTTP or SSE) based on the server’s response headers.
If the remote MCP server requires authorization with OAuth, you can use either use mcp-remote or pass authentication headers directly via the headers option.
You can also use environment variables in the configuration with the ${VAR_NAME} syntax.
Example configuration:
"amp.mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest", "--headless", "--isolated"]
},
"semgrep": {
"url": "https://mcp.semgrep.ai/mcp"
},
"sourcegraph": {
"url": "${SRC_ENDPOINT}/.api/mcp/v1",
"headers": {
"Authorization": "token ${SRC_ACCESS_TOKEN}"
}
},
"linear": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.linear.app/sse"
]
},
"monday": {
"url": "https://mcp.monday.com/sse",
"headers": {
"Authorization": "Bearer ${MONDAY_API_TOKEN}"
}
}
} You can also add MCP servers using the CLI with header options:
$ amp mcp add sourcegraph --header "Authorization=token sgp_your-token-here" https://sourcegraph.example.com/.api/mcp/v1 Too many available tools can reduce model performance, so for best results, be selective:
amp.tools.disable in your configuration file.Before invoking a tool, Amp checks the user’s list of permissions for the first matching entry to decide whether to run the tool.
If no match is found, Amp scans through its built-in permission list, rejecting the tool use in case no match is found there either.
The matched entry tells Amp to either allow the tool use without asking, reject the tool use outright, ask the operator, or delegate the decision to another program.
Permissions are configured in your configuration file under the entry amp.permissions:
"amp.permissions": [
// Ask before running command line containing git commit
{ "tool": "Bash", "matches": { "cmd": "*git commit*" }, "action": "ask"},
// Reject command line containing python or python3
{ "tool": "Bash", "matches": { "cmd": ["*python *", "*python3 *"] }, "action": "reject"},
// Allow all playwright MCP tools
{ "tool": "mcp__playwright_*", "action": "allow"},
// Ask before running any other MCP tool
{ "tool": "mcp__*", "action": "ask"},
// Delegate everything else to a permission helper (must be on $PATH)
{ "tool": "*", "action": "delegate", "to": "my-permission-helper"}
] Complex objects must be configured in VS Code’s Settings JSON.
A JSON schema for permissions is integrated into VS Code to offer guidance when editing permissions.
Rules with action ask only work for the Bash tool in VS Code.
Using amp permissions edit you can edit your permissions rules programmatically and interactively using $EDITOR.
The amp permissions test command evaluates permission rules without actually running any tools, providing a safe way for verifying that your rules work as intended.
$ amp permissions edit <<'EOF'
allow Bash --cmd 'git status' --cmd 'git diff*'
ask Bash --cmd '*'
EOF
$ amp permission test Bash --cmd 'git diff --name-only'
tool: Bash
arguments: {"cmd":"git diff --name-only"}
action: allow
matched-rule: 0
source: user
$ amp permission test Bash --cmd 'git push'
tool: Bash
arguments: {"cmd":"push"}
action: ask
matched-rule: 1
source: user Running amp permissions list displays known permissions rules in the same format understood by amp permissions edit:
$ amp permissions list
allow Bash --cmd 'git status' --cmd 'git diff*'
ask Bash --cmd '*' Refer to the output of amp permissions --help for the full set of available operations.
For full control, you can tell Amp to consult another program before invoking a tool:
{ "action": "delegate", "to": "amp-permission-helper", "tool": "Bash" } Now every time Amp wants to run a shell command, it will invoke amp-permission-helper:
#!/usr/bin/env python3
import json, sys, os
tool_name = os.environ.get("AGENT_TOOL_NAME")
tool_arguments = json.loads(sys.stdin.read())
# allow all other tools
if tool_name != "Bash":
sys.exit(0)
# reject git push outright - stderr is passed to the model
if 'git push' in tool_arguments.get('cmd', ''):
print("Output the correct command line for pushing changes instead", file=sys.stderr)
sys.exit(2)
# ask in any other case
sys.exit(1) The error code and stderr are used to tell Amp how to proceed.
See the Appendix for the full technical reference.
Threads are conversations with the agent, containing all your messages, context, and tool calls. Your threads are visible at ampcode.com/threads.
We find it useful to include Amp thread links in code reviews to give the reviewer more context. Reading and searching your team’s threads can also help you see what’s going on and how other people are using Amp.
To change who you’re sharing a thread with:
thread: set visibility.A thread’s visibility level can be set to:
ampcode.com/@your-username), and publicly searchableIf you are not in a workspace, your threads are only visible to you by default.
If you’re in a workspace, your threads are shared by default with your workspace members. Enterprise workspaces can configure additional sharing controls; see Workspace Thread Visibility Controls.
After installing and signing in, run amp to start the Amp CLI.
Without any arguments, it runs in interactive mode:
$ amp If you pipe input to the CLI, it uses the input as the first user message in interactive mode:
$ echo "commit all my changes" | amp Use -x or --execute to start the CLI in execute mode (not available in Amp Free). In this mode, it sends the message provided to -x to the agent, waits until the agent ended its turn, prints its final message, and exits:
$ amp -x "what files in this folder are markdown files? Print only the filenames."
README.md
AGENTS.md You can also pipe input when using -x:
$ echo "what package manager is used here?" | amp -x
cargo If you want to use -x with the agent using tools that might require approval, make sure to either use --dangerously-allow-all or configure Amp to allow them:
$ amp --dangerously-allow-all -x "Run `sed` to replace 2024 with 2025 in README."
Done. Replaced 8 occurrences of 2024 in README.md Execute mode is automatically turned on when you redirect stdout:
$ echo "what is 2+2?" | amp > response.txt When you pipe input and provide a prompt with -x, the agent can see both:
$ cat ~/.vimrc | amp -x "which colorscheme is used?"
The colorscheme used is **gruvbox** with dark background and hard contrast.
```vim
set background=dark
let g:gruvbox_contrast_dark = "hard"
colorscheme gruvbox
``` You can use the --mcp-config flag with -x commands to specify an MCP server without modifying your configuration file.
$ amp --mcp-config '{"everything": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-everything"]}}' -x "What tools are available to you?" To see more of what the CLI can do, run amp --help.
For non-interactive environments (e.g. scripts, CI/CD pipelines), set your API key in an environment variable:
export AMP_API_KEY=your-api-key-here The Amp CLI integrates with VS Code, JetBrains, and Neovim (see ampcode.com/install to install), which lets the Amp CLI:
The CLI automatically detects when you have an Amp editor extension running in most cases. If you are using JetBrains and run the Amp CLI from a terminal other than JetBrains’ builtin terminal, you need to run amp --jetbrains to detect it.
Execute shell commands directly in the CLI by starting your message with $. The command and its output will be included in the context window for the next message to the agent.
Use $$ to activate incognito shell mode, where commands execute but aren’t included in the context. This is useful for noisy commands or quick checks you’d normally run in a separate terminal.
In modern terminal emulators, such as Ghostty, Wezterm, Kitty, or iTerm2, you can use shift-enter to insert a newline in your prompts.
Additionally you can also use type \ followed by return to insert a newline.
If you have the environment variable $EDITOR set, you can use the editor command from the command palette to open your editor to write a prompt.
Amp’s CLI supports streaming JSON output format, one object per line on stdout, for programmatic integration and real-time conversation monitoring.
Use the --stream-json flag with --execute mode to output in stream JSON format instead of plain text.
Basic usage with argument:
$ amp --execute "what is 3 + 5?" --stream-json Combining —stream-json with amp threads continue:
$ amp threads continue --execute "now add 8 to that" --stream-json With stdin input:
$ echo "analyze this code" | amp --execute --stream-json You can find the schema for the JSON output in the Appendix.
Input can be also be provided on stdin with the --stream-json-input flag:
$ echo '{
"type": "user",
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "what is 2+2?"
}
]
}
}' | amp -x --stream-json --stream-json-input The --stream-json flag requires --execute mode. It cannot be used standalone. And --stream-json-input requires --stream-json.
When using --stream-json-input, the behavior of --execute changes in that Amp will only exit once both the assistant is done and stdin has been closed.
This allows for programmatic use of the Amp CLI to have conversations with multiple user messages.
#!/usr/bin/env bash
send_message() {
local text="$1"
echo '{"type":"user","message":{"role":"user","content":[{"type":"text","text":"'$text'"}]}}'
}
{
send_message "what's 2+2?"
sleep 10
send_message "now add 8 to that"
sleep 10
send_message "now add 5 to that"
} | amp --execute --stream-json --stream-json-input See the Appendix for the schema of the output, example output, and more usage examples.
Amp can be configured through settings in your editor extension (e.g. .vscode/settings.json) and the CLI configuration file.
The CLI configuration file location varies by operating system:
~/.config/amp/settings.json~/.config/amp/settings.json%APPDATA%\amp\settings.jsonAll settings use the amp. prefix.
amp.anthropic.thinking.enabled
Type: boolean, Default: true
Enable Claude’s extended thinking capabilities
amp.permissions
Type: array, Default: []
Configures which tool uses are allowed, rejected or ask for approval. See Permissions.
amp.git.commit.ampThread.enabled
Type: boolean, Default: true
Enable adding Amp-Thread trailer in git commits. When disabled, commits made with the commit tool will not include the Amp-Thread: <thread-url> trailer.
amp.git.commit.coauthor.enabled
Type: boolean, Default: true
Enable adding Amp as co-author in git commits. When disabled, commits made with the commit tool will not include the Co-authored-by: Amp <amp@ampcode.com> trailer.
amp.mcpServers
Type: object
Model Context Protocol servers that expose tools. See Custom Tools (MCP) documentation.
amp.terminal.commands.nodeSpawn.loadProfile
Type: string, Default: "always", Options: "always" | "never" | "daily"
Before running commands (including MCP servers), whether to load environment variables from the user’s profile (.bashrc, .zshrc, .envrc) as visible from the workspace root directory
amp.todos.enabled
Type: boolean, Default: true
Enable TODOs tracking for managing tasks
amp.tools.disable
Type: array, Default: []
Disable specific tools by name. Use ‘builtin:toolname’ to disable only the builtin tool with that name (allowing an MCP server to provide a tool by that name). Glob patterns using * are supported.
amp.tools.stopTimeout
Type: number, Default: 300
How many seconds to wait before canceling a running tool
amp.mcpPermissions
Type: array, Default: []
Allow or block MCP servers that match a designated pattern. The first rule that matches is applied. If no rule matches an MCP server, the server will be allowed.
url key to specify a matching criterion for the server endpointcommand and args keys to match an executable command and its argumentsHere are some examples:
"amp.mcpPermissions": [
// Allow specific trusted MCP servers
{ "matches": { "command": "npx", "args": "* @playwright/mcp@*" }, "action": "allow" },
{ "matches": { "url": "https://mcp.trusted.com/mcp" }, "action": "allow" },
// Block potentially risky MCP servers
{ "matches": { "command": "python", "args": "*bad_command*" }, "action": "reject" },
{ "matches": { "url": "*/malicious.com*" }, "action": "reject" },
] The following rules will block all MCP servers:
"amp.mcpPermissions": [
{ "matches": { "command": "*" }, "action": "reject" },
{ "matches": { "url": "*" }, "action": "reject" }
]amp.updates.mode
Type: string, Default: "auto"
Control update checking behavior: "warn" shows update notifications, "disabled" turns off checking, "auto" automatically runs update. Note: Setting AMP_SKIP_UPDATE_CHECK=1 environment variable will override this setting and disable all update checking.
Enterprise workspace administrators can enforce settings that override user and workspace settings by deploying their policies to the following locations on machines running Amp:
/Library/Application Support/ampcode/managed-settings.json/etc/ampcode/managed-settings.jsonC:\ProgramData\ampcode\managed-settings.jsonThis managed settings file uses the same schema as regular settings files, with one additional field:
string When using the Amp CLI in corporate networks with proxy servers or custom certificates, set these standard Node.js environment variables in your shell profile or CI environment as needed:
export HTTP_PROXY=your-proxy-url
export HTTPS_PROXY=your-proxy-url
export NODE_EXTRA_CA_CERTS=/path/to/your/certificates.pem Amp’s free mode is free of charge and supported by ads. It uses a mix of top OSS models, frontier models with limited context windows, and pre-release frontier models in testing.
The free mode meets all of the stringent security standards of Amp’s paid smart mode. You are not required to share your data for training.
To use it: /mode free in the Amp CLI, or select the free mode in the prompt field of the Amp editor extension (instead of the paid smart mode).
See the Amp Free announcement and Use Amp Free at Work for more information.
Amp’s default smart mode is more autonomous and capable than free, and it uses paid credits.
You can buy more credits in user settings for yourself, or for your team in workspace settings. Upon signup, most users receive $10 USD in free credits.
Usage is consumed based on LLM usage and usage of certain other tools (like web search) that cost us to serve. We pass these costs through to you directly with no markup, for individuals and non-enterprise workspaces.
Workspace credits are pooled and shared by all workspace members. All unused credits expire after one year of account inactivity.
Enterprise usage is 50% more expensive than individual and team plans, and includes access to:
For more information about Amp Enterprise security features, see the Amp Security Reference.
To start using Amp Enterprise, go to your workspace and click “Change Plan” in the top right corner. This requires a special one-time $1,000 USD purchase, which grants your workspace $1,000 USD of Amp Enterprise usage and upgrades your workspace to Enterprise.
With Amp Enterprise Premium, invoice payments are offered for purchases of $5,000+ USD, and volume discounts are available for purchases of $25,000+ USD. Amp Enterprise Premium also includes access to:
Contact amp-devs@sourcegraph.com for access to these purchasing options and for general information about Amp Enterprise.
For general help with Amp, post on X and mention @AmpCode, or email amp-devs@sourcegraph.com. You can also join our community Build Crew to discuss Amp and share tips with others.
For billing and account help, contact support@sourcegraph.com.
Amp officially supports macOS, Linux, and Windows via WSL (Windows Subsystem for Linux). While Amp also works on Windows outside of WSL, it’s not officially supported—you may encounter issues, but many users run it successfully.
Amp’s JetBrains integration supports all JetBrains IDEs (IntelliJ, WebStorm, GoLand, etc.) on versions 2025.1+ (2025.2.2+ is recommended).