Quickstart
Get started in a few steps.
Use sign-in and setup for tools. Use API keys for scripts, integrations, and backend jobs.
Choose your path
Two ways to use coFlex.
Use plans for regular IDE and CLI work. Use API keys for integrations and direct API traffic.
Use in your toolsFor IDE agents, CLI workflows, and regular coding sessions
Sign inInstall the CLI, sign in in the browser, then let `coflex setup` configure your supported tools.
Use via APIFor scripts, CI, integrations, and backend jobs
Sign inCreate a direct API key, point your client at `/v1`, and use the same OpenAI-compatible request shape.
Plan setup
Sign in and set up your tools.
Plans are for supported IDE and CLI tools. Sign in once, then let the CLI configure the tools you use.
1
Install the CLI
This is the quickest way to set up supported IDE and CLI tools.
Install commandcoFlex CLI
npm install -g coflexdev
2
Sign in and run setup
Approve sign-in in the browser, then let the CLI configure supported tools.
Tool setup commandsSign in, then set up supported tools
coflex login coflex setup --yes
API setup
Use an API key for integrations.
API traffic uses API keys. This path is for scripts, CI, automations, and backend services.
Environment variablesOpenAI-compatible base URL and key
export OPENAI_BASE_URL=https://api.coflex.dev/v1 export OPENAI_API_KEY=cfx_live_xxxxxxxxxxxxx
Validation requestOne HTTP request to confirm the key works
curl https://api.coflex.dev/v1/chat/completions \
-H "Authorization: Bearer cfx_live_xxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [{ "role": "user", "content": "Write a binary search in TypeScript." }]
}'