Coding agents

One endpoint for coding agents and editor tools.

FreeTheAi works with coding agents that support custom OpenAI-compatible providers. Add the base URL, paste your key, choose a model alias, and let the client handle streaming and tools.

Copy-paste basics

Use the same FreeTheAi gateway everywhere.

OpenCode, Cline, Roo Code, Kilo Code, Zed, Continue.dev, Aider, and editor-agent users.

Base URL https://api.freetheai.xyz/v1
Provider type OpenAI Compatible
Model field Use an exact alias from https://freetheai.xyz/models
Why it works

Built for real clients, not just docs.

Tool-friendly routes

Chat completions, Messages, and Responses compatibility cover the common surfaces used by coding agents.

Exact setup guides

The setup pages include copy-paste config blocks for editor agents instead of generic SDK advice.

Model metadata

The site catalog exposes public context, output, and capability fields so clients can be configured accurately.

Routes

Pick the route your client expects.

POST /v1/chat/completions

Default route for OpenAI-compatible editor integrations and many agent tools.

POST /v1/messages

Anthropic-style compatibility route for clients that speak Messages format.

POST /v1/responses

Responses-style compatibility route for clients and SDKs moving toward the newer OpenAI surface.

Exact setup

Start with one of these guides.

Each guide includes the right URL format, model field, and common client-specific gotchas.

FAQ

Fast answers.

Can Cline use FreeTheAi?

Yes. Pick OpenAI Compatible in Cline, set Base URL to https://api.freetheai.xyz/v1, paste your key, and type an exact model alias.

Can OpenCode use FreeTheAi?

Yes. Add a custom provider with @ai-sdk/openai-compatible and baseURL https://api.freetheai.xyz/v1, then list the aliases you want in opencode.json.

Do coding agents need a paid plan?

The free API works for compatible clients, but optional paid plans provide separate higher-power model access and plan limits for heavier use.