Cline
Cline is an AI coding assistant for VS Code. To connect it to DDTokens, select an OpenAI-compatible API or custom OpenAI-compatible provider.
Configuration
Enter these values in Cline settings:
| Setting | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://apiddt.com/v1 |
| API Key | Your DDTokens API key |
| Model ID | gpt-4o-mini or a model shown in the dashboard |
Recommended Model
For the first setup, use a lower-cost, faster model to verify the connection. After conversations work normally, switch to a model better suited to coding tasks.
Verify
Ask Cline to perform a read-only task in VS Code:
text
Read the open file and summarize what it does.After the request succeeds, you can allow it to edit files or run commands.
Troubleshooting
- Authentication failure: check the API key and current Cline configuration.
- Model unavailable: use a model ID shown in the dashboard.
- Slow response: reduce the output length or switch to a faster model.
- Unexpected cost: check token usage in Usage Logs.