Kode
You need a Divyam account and an API key. If you don't have them yet, follow Getting Started first.
Replace the shortened divyam-sw-v1-... shown in examples with your complete API key.
The examples use divyam-as/gpt-6-sol. For another model, select its current ID in your harness or copy it from Models and pricing, and check its context limit and supported features.
1. Install and start Kode
Follow the official installation instructions. From your project folder, start an interactive session:
USE_NEW_ADAPTERS=false kode
USE_NEW_ADAPTERS=false selects Kode's Chat Completions connection. Use this command whenever you start Kode with Divyam.
2. Add your Divyam model
Choose Custom OpenAI-Compatible API during setup. For an existing profile, enter /model, then choose Manage Model List → + Add New Model.
Enter these connection values, replacing divyam-sw-v1-... with your Divyam key:
| Field | Value |
|---|---|
| Base URL | https://api.preview.divyam.ai/v1 |
| API key | divyam-sw-v1-... |
Model ID: divyam-as/gpt-6-sol. Context window: 1,050,000 tokens. Models and pricing
Enter divyam-as/gpt-6-sol for Model name.
Accept the remaining model settings, finish the connection check and save. For an existing installation, use /model to select this model for Main Model, Task Model, Compact Model and Quick Model.
3. Send a coding request
Hello, what are your capabilities?
Review Kode's file and command approval prompts as you work.
Check your requests
Open the Divyam console and select Logs. Your requests appear there within a few seconds, newest first, with their status, token counts and latency. Usage and Credits & Billing catch up within a few minutes.
Some clients display zero when model prices are missing. Check Credits & Billing for Divyam charges. Local dollar limits depend on the client's price and usage data.
For filters, cached-token counts and the requested-versus-routed view, see Logs and usage.