Cline Setup Guide
Configure Cline (formerly Claude Dev) VS Code extension to use custom API endpoints for Claude and OpenAI models.
📱 What is Cline?
Cline (formerly Claude Dev) is a powerful VS Code extension that brings AI assistance directly into your editor. It can read files, edit code, execute terminal commands, and help with complex development tasks.
Key features:
- File and folder operations
- Terminal command execution
- Browser automation support
- Multi-model support (Claude, GPT, Gemini, etc.)
- Inline code editing with diff view
Install from the VS Code Marketplace.
⚙️ Configuration Steps
Step 1: Open Cline Settings
Click the Cline icon in the VS Code sidebar, then click the settings gear icon (⚙️) in the Cline panel header.
Step 2: Select API Provider
In the Settings dialog, find the API Provider dropdown and select OpenAI Compatible.
Step 3: Configure Base URL
In the Base URL field, enter:
https://jzstoken.com/api/v1
Step 4: Add Your API Key
In the API Key field, paste your API key from the dashboard:
sk-your-api-key-here
Get your API key from the API Keys page in your dashboard.
Step 5: Select a Model
In the Model field, enter the exact model ID you want to use. Common choices:
claude-sonnet-5
Latest Claude Sonnet — Best balance of speed and capability
claude-opus-5
Claude Opus — Highest capability, best for complex tasks
claude-haiku-4-5-20251001
Claude Haiku — Fastest, most cost-effective
gpt-5.4
GPT-5 — OpenAI's latest flagship model
See the full model catalog for all available models and pricing.
Step 6: Save and Test
Click Save to apply the configuration. Start a new conversation in Cline to test the connection.
🤖 Using Claude Models
All Claude models work through the OpenAI Compatible provider. Simply enter the model ID directly:
claude-sonnet-5claude-opus-5claude-fable-5claude-haiku-4-5-20251001
claude-sonnet-4-6. For other Claude models, use a Comprehensive key. Check your key type in the dashboard.🔄 Switching Between Models
You can switch models at any time:
- Click the settings gear icon in the Cline panel
- Change the Model field to a different model ID
- Click Save
- The new model takes effect immediately in new conversations
Each model has different pricing. Check the model catalog for cost comparison.
📋 Example Configuration
Here's a complete working configuration:
API Provider
OpenAI Compatible
Base URL
https://jzstoken.com/api/v1
API Key
sk-xxxxxxxxxxxxxx
Model
claude-sonnet-5
🔧 Troubleshooting
- Connection Failed? — Check your network connection, verify the Base URL is exactly
https://jzstoken.com/api/v1(no trailing slash), confirm your API key is correct. - 401 Unauthorized? — Verify your API key is active in the dashboard, check that your balance is sufficient.
- 403 Model not supported? — Check that your key type matches the model. Aggregated keys only support
claude-sonnet-4-6. - Model not responding? — Try a different model ID. Make sure the model name is spelled exactly as shown in the catalog (case-sensitive).
- Cline not showing up? — Restart VS Code after installation. Check that the extension is enabled in the Extensions panel.
💡 Tips for Best Results
- Start with Sonnet:
claude-sonnet-5offers the best balance of cost and capability for most coding tasks. - Use Opus for complex work: Switch to
claude-opus-5when dealing with complex architecture decisions or refactoring. - Save with Haiku: For simple edits and quick questions,
claude-haiku-4-5-20251001is fast and cost-effective. - Monitor usage: Check your usage dashboard to track token consumption and costs.