Devin CLI
Use aicentos in Devin CLI — connect through the OpenAI-compatible configuration
Last updated:
Devin CLI is Devin's command-line client. It supports specifying an OpenAI-compatible API address through environment variables or a configuration file. Point the Base URL at aicentos and fill in the API Key, and the models aicentos offers become available in the terminal.
Prerequisites
First create a dedicated key for Devin CLI on the console's "API Keys" page (naming it devin-cli makes usage easier to track).
Installation
Node.js 18+ and npm are required first:
node -v
npm -vInstall globally with npm:
npm install -g devin-cliVerify after installing:
devin --versionSetup steps
Both environment variables and a configuration file are supported; environment variables take precedence.
Option 1: Environment variables (recommended)
export DEVIN_BASE_URL="https://aicentos.com/v1"
export DEVIN_API_KEY="your_api_key_here"To persist them, write them into ~/.zshrc or ~/.bashrc, then run source ~/.zshrc.
Option 2: Configuration file
Edit ~/.devin/config.json:
{
"apiKey": "your_api_key_here",
"baseURL": "https://aicentos.com/v1",
"model": "gpt-4o"
}Configuration to fill in
| Field | Value |
|---|---|
| API Key | The key created in the console |
| Base URL | https://aicentos.com/v1 |
| Model | A model name from the Model Gallery in the console |
Test
Once configured, run:
devinSend a simple prompt in the interactive session; receiving a normal reply means the integration works. On an authentication error, check whether DEVIN_API_KEY is correct, whether DEVIN_BASE_URL carries the /v1 suffix, and whether the account balance is sufficient.
Notes
- The Base URL only goes up to
/v1; do not extend it to the full/v1/chat/completionspath - When both environment variables and the configuration file exist, the environment variables win
- It is a good idea to confirm the visible models with
GET /v1/modelsfirst, then fill in the Model ID