Skip to Content
aicentos

Jcode

Use aicentos in Jcode — specify an OpenAI-compatible endpoint through the configuration file

Last updated:

Jcode can point at an OpenAI-compatible API service through a configuration file. Set the Base URL to aicentos and fill in the API Key, and the models aicentos offers become available in Jcode.

Prerequisites

First create a dedicated key for Jcode on the console's "API Keys" page (naming it jcode makes usage easier to track).

Configuration to fill in

FieldValue
ProviderOpenAI Compatible
Base URLhttps://aicentos.com/v1
API KeyThe key created in the console
ModelA model name from the Model Gallery in the console

Setup steps

  • Open Jcode's configuration file (usually under the user configuration directory, e.g. ~/.jcode/config.json).
  • Add an OpenAI-compatible provider entry.
  • Set baseURL / baseUrl to: https://aicentos.com/v1
  • Set apiKey to the key created in the console.
  • Set model to a model name from the Model Gallery in the console (see Supported models).
  • Save and restart Jcode for the configuration to take effect.

Reference structure:

{
  "provider": "openai",
  "baseUrl": "https://aicentos.com/v1",
  "apiKey": "sk-your-key",
  "model": "gpt-4o"
}

If your version keeps the configuration at ~/.config/jcode/config.json, edit the file with the same name at that path instead.

Test

After restarting, start a new session and send a simple prompt; a normal response means the integration works.

Notes

  • Field naming (baseUrl / base_url) may differ between versions; follow the field names in your local configuration template.
  • The Base URL only goes up to /v1; do not extend it to the full API path.
  • If your Jcode version offers no custom Base URL entry, that version cannot connect to third-party endpoints; switch to another client that supports a custom Base URL.
  • Never commit the key to version control; reference it through an environment variable if necessary.