Add a custom OpenAI provider in Reasonix and switch the default coding model to EcoToken.
| Base URL | Authentication | Protocol |
|---|---|---|
https://ecotoken.ecophase-ai.com/v1 | Bearer API Key | OpenAI Chat Completions |
01 Prepare access details
Create an API key that can access deepseek-v4.1-flash. Store the real key in the Reasonix .env file.
02 Install and start Reasonix
Reasonix requires Node.js 20.10 or later. Windows also requires Git for Windows.
npx reasonix code03 Configure the EcoToken provider
Add the provider to ~/.reasonix/config.toml. On Windows, ~ is the current user profile.
default_model = "ecotoken/deepseek-v4.1-flash"
[[providers]]
name = "ecotoken"
kind = "openai"
base_url = "https://ecotoken.ecophase-ai.com/v1"
models = ["deepseek-v4.1-flash"]
default = "deepseek-v4.1-flash"
api_key_env = "ECOTOKEN_API_KEY"Save the key in ~/.reasonix/.env:
ECOTOKEN_API_KEY=YOUR_API_KEY04 Launch and verify
cd /path/to/your-project
npx reasonix codeA model response and matching entry under Usage & costs → Request records confirm the integration.
05 Common errors
401: Check the key in~/.reasonix/.envand confirm it is active.403: Check the key group, model permission, and account state.model not found: The default model and provider model list must match the EcoToken console.
