export ANTHROPIC_API_KEY='sk-ant-...'

Category: AI Agents & MCP

export ANTHROPIC_API_KEY='sk-ant-...'

Set your Anthropic API key for Claude access

Set this in your shell session or in ~/.bashrc for persistence. Never hardcode API keys in source code — use environment variables or a secrets manager. Claude Code, aider, LangChain, and most agent frameworks read this variable automatically.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.