CLI Code Docs

Configuration

Configuration Guide for CLI Code

The configuration file for CLI Code is located at:

~/.config/cli-code/config.json

What is CLI Code Config?

CLI Code Config is a JSON file that holds user-specific settings for the CLI Code app. It is automatically generated the first time you log in using the authentication token obtained from the website.


CLI Code Config Structure

~/.config/cli-code/config.json
{
  "refreshToken": "vibe_...",
  "accessToken": "vibe_...",
  "acceptAllToolCalls": boolena,
  "plan": {
    "mode": "lite | full",
    "addOns": []
  },
  "selectedModel": {
    "provider": "<Your_Model_Provider>",
    "model": "<Your_Model_Name>",
    "sdk": "openai | anthropic | gemini"
  },
  "ANTHROPIC_API_KEY": "<Your_ANTHROPIC_API_KEY>",
  "GEMINI_API_KEY": "<Your_GEMINI_API_KEY>",
  "OPENROUTER_API_KEY": "<Your_OPENROUTER_API_KEY>",
  "OPENAI_API_KEY": "<Your_OPENAI_API_KEY>"
  ...
}

Configuration Fields

refreshToken

Token used to refresh the access token. This is typically set only once.

accessToken

Used to authenticate the user. Automatically generated when logging into the app.

acceptAllToolCalls

Boolean flag to determine whether all AI tool calls should be automatically accepted.

plan

Specifies the current operational mode of the app. Can be either:

  • lite
  • full

addOns

An array of enabled add-ons, typically relevant when operating in lite mode.

selectedModel

Defines the currently selected AI model. This object contains:

  • provider: The AI model provider.
  • model: The specific model name.
  • sdk: One of openai, anthropic, or gemini.

<AI_PROVIDER>_API_KEY

API keys for the supported AI providers. These enable integration with external AI services. The supported keys include:

  • ANTHROPIC_API_KEY
  • GEMINI_API_KEY
  • OPENAI_API_KEY
  • OPENROUTER_API_KEY

Add other keys as needed depending on your provider.