BeeRoute logoBeeRoute.

Home / Guides / Reasonix

Reasonix

Reasonix is an open-source coding agent that offers a command-line tool, a desktop app, and a VS Code extension. Reasonix lets you add OpenAI-compatible (Chat Completions) and Anthropic-compatible (Messages) model providers.

The Reasonix tutorial in DeepSeek's official documentation (npx reasonix code, config.json) is for an older version. The configuration below applies to the current 2.x version.

1. Get an API Key

Open the API Keys page, click Create API Key, set Group to default, and copy the key (it starts with sk-).

2. Install Reasonix

npm install -g reasonix

On macOS, you can also use Homebrew: brew install esengine/reasonix/reasonix. The desktop app can be downloaded from GitHub Releases.

3. Configure BeeRoute

Option 1: Use the Setup Wizard

reasonix setup

In the wizard, add an OpenAI-compatible provider, set Base URL to https://beeroute.ai/v1, enter your key, then enter a model ID (for example, claude-sonnet-5-5). You can also enter /setup in Reasonix to open the wizard.

Option 2: Edit the Configuration File Manually

Configuration file locations:

OSConfiguration fileKey file
macOS / Linux~/.reasonix/config.toml~/.reasonix/.env
Windows%APPDATA%\reasonix\config.toml%APPDATA%\reasonix\.env

Add the following to config.toml. default_model must be at the top of the file (before all [...] sections). If the file already has default_model, just change its value. The [[providers]] section can go at the end of the file.

default_model = "beeroute"

[[providers]]
name        = "beeroute"
kind        = "openai"
base_url    = "https://beeroute.ai/v1"
models      = ["claude-sonnet-5-5", "gpt-6.2-sol", "deepseek-flash", "kimi-k3.1-pro", "glm-5.3", "qwen4-max"]
default     = "claude-sonnet-5-5"
api_key_env = "BEEROUTE_API_KEY"

In the key file .env, write:

BEEROUTE_API_KEY=sk-xxx
FieldDescription
default_modelName of the provider to use by default (its default model is used). You can also write beeroute/kimi-k3.1-pro to specify a model
kindopenai means the OpenAI Chat Completions format
base_urlMust include /v1; Reasonix appends /chat/completions automatically
modelsList of BeeRoute model IDs to use. See the Pricing page for all models
api_key_envThe name of the variable that holds the key, not the key itself; the key goes in the .env file

Do not put your key directly in config.toml.

4. Launch and Verify

cd /path/to/your-project
reasonix

Send a message. If you get a normal reply, the connection works.

5. Advanced: Use the Native Anthropic Format for Claude Models (Optional)

Add another provider to config.toml:

[[providers]]
name        = "beeroute-claude"
kind        = "anthropic"
base_url    = "https://beeroute.ai"
model       = "claude-sonnet-5-5"
api_key_env = "BEEROUTE_API_KEY"

For the Anthropic format, base_url is https://beeroute.ai without /v1 (Reasonix appends /v1/messages automatically). To use it by default, change default_model to "beeroute-claude".

6. FAQ

Getting a 401 error?

Check that the key in .env is complete and that api_key_env matches the variable name in .env.

Getting a 404 error?

With kind = "openai", base_url is missing /v1; or with kind = "anthropic", it has an extra /v1.

Thinking parameter errors when using DeepSeek models?

Reasonix identifies DeepSeek models by model name and sends thinking parameters in DeepSeek format. If this causes errors, add reasoning_protocol = "openai" to the provider (to use the generic reasoning_effort instead) or reasoning_protocol = "none" (to send no thinking parameters).

For more details, see the official Reasonix repository: README, Example configuration.

Last updated 2026-11-29 · Markdown source · llms.txt