EcoToken

Connect Reasonix

Add a custom OpenAI provider in Reasonix and switch the default coding model to EcoToken.

Base URLAuthenticationProtocol
https://ecotoken.ecophase-ai.com/v1Bearer API KeyOpenAI 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.

bash
npx reasonix code

03 Configure the EcoToken provider

Add the provider to ~/.reasonix/config.toml. On Windows, ~ is the current user profile.

toml
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:

dotenv
ECOTOKEN_API_KEY=YOUR_API_KEY

04 Launch and verify

bash
cd /path/to/your-project
npx reasonix code

A model response and matching entry under Usage & costs → Request records confirm the integration.

05 Common errors

  • 401: Check the key in ~/.reasonix/.env and 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.
EcoPhase Docs - Connect Reasonix - EcoPhase.AI