API keys & the gateway
For SDKs and external tools, create a key in the dashboard. The gateway is OpenAI-compatible.
Create a key
Create a key at codegraff.com/dashboard/keys. Keys are prefixed cg_sk_ and are stored only as a hash, so copy it when it is shown.
Call the gateway
The gateway lives at https://gateway.codegraff.com/v1 and speaks the OpenAI API. Use your key as the bearer token:
bash
curl https://gateway.codegraff.com/v1/models -H "Authorization: Bearer cg_sk_your_key"