Amp
Configure Amp through CLIProxyAPI so its Anthropic-style requests route to Prismatic.
Configuration
- Create a CLIProxyAPI
config.yamlwith aprismaticcustom provider. - Set provider
base-urltohttps://api.prismaticapi.com/v1andapi-keyto your Prismatic key. - Map Amp requested model names to Prismatic public model IDs under
model-mappings. - Start the local proxy on
http://localhost:3456, then point AmpANTHROPIC_BASE_URLto that proxy.
Example
server:
port: 3456
custom-providers:
- name: "prismatic"
base-url: "https://api.prismaticapi.com/v1"
api-key: "pa_YOUR_KEY"
models:
- "claude-sonnet-4-6"
- "claude-haiku-4-5"
model-mappings:
gpt-5.4:
provider: prismatic
model: claude-sonnet-4-6
gpt-5.3-codex:
provider: prismatic
model: claude-sonnet-4-6
glm-5-turbo:
provider: prismatic
model: claude-haiku-4-5
force-model-mappings: truedocker run -d --name cliproxyapi \ -p 3456:3456 \ -v ./config.yaml:/CLIProxyAPI/config.yaml \ eceasy/cliproxyapi
export ANTHROPIC_BASE_URL="http://localhost:3456" export ANTHROPIC_API_KEY="pa_YOUR_KEY" amp
Recommended models
claude-sonnet-4-6— strong model for reasoning, refactors and coding agents.claude-haiku-4-5— fast option for autocomplete, small questions and lightweight tasks.deepseek-v3-2or another public ID — alternative based on your active catalog and plan.
Troubleshooting
Proxy not starting
Verify Docker is running with docker ps, check docker logs cliproxyapi, and confirm port 3456 is free.
Amp connection errors
Confirm ANTHROPIC_BASE_URL is http://localhost:3456 and the proxy container is still running.
Model mapping errors
Check model-mappings and make sure every mapped value is a Prismatic public model ID.
Notes
- Amp calls the local proxy in this setup; CLIProxyAPI translates the request to the Prismatic OpenAI-compatible API.
- Keep
force-model-mappings: trueso unexpected Amp model names are mapped deliberately. - Use public model IDs returned by
GET /v1/modelswhen you customizemodel-mappings.