← all guides
Claude Code
Anthropic's agentic coding CLI
[ Connect a free provider ]
Pick a provider, copy, done.
[ Config · Claude Code — env ]
bash
# settings.json "env" block, or your shell:
ANTHROPIC_BASE_URL=https://api.groq.com/openai/v1
ANTHROPIC_AUTH_TOKEN=<YOUR_API_KEY>
ANTHROPIC_MODEL=llama-3.3-70b-versatile
# Claude Code speaks the Anthropic Messages API. Use an Anthropic-compatible
# endpoint, or an OpenAI→Anthropic proxy in front of Groq.[ Paste-to-agent prompt ]
prompt
You are being set up to use a free LLM API as your model backend.
Provider: Groq
Base URL: https://api.groq.com/openai/v1
Model: llama-3.3-70b-versatile
Auth: Bearer token (OpenAI-compatible)
Key env var: GROQ_API_KEY
Task:
1. Configure Claude Code to call the endpoint above using the OpenAI Chat Completions format.
2. Read the API key from the GROQ_API_KEY environment variable. Do NOT
ask me to paste the key in plain text in this chat — I will set it in my env.
3. If a setting requires a base URL, use exactly: https://api.groq.com/openai/v1
4. Send one short test message ("ping") and report back whether the call
succeeded, including the model name and latency.
If anything is missing (e.g. an account ID for the base URL), ask me for just
that value and nothing else.↳ You supply the key in your own env. apifreely never sees it.