Get your API key
Sign up
Create an account at context.dev/signup. The free tier gives you 500 one-time credits. No credit card required.
Copy your key from the dashboard
Open the dashboard and copy the key from the “API Keys” section. It starts with 
ctxt_secret_.
Expose it as an environment variable
The SDKs, MCP server, and The official SDKs read
curl examples read CONTEXT_DEV_API_KEY from the environment:terminal
CONTEXT_DEV_API_KEY first and fall back to CONTEXT_API_KEY if it isn’t set, so exporting CONTEXT_DEV_API_KEY alone is enough. It’s also the doc standard and what the MCP server and curl examples use.