Configure AskCodi API
Fast guide to connect Kilocode AI coding assistant with AskCodi API. Configure OpenAI-compatible settings for Code, Architect, Ask, Debug, and Orchestrator modes.
Connect Kilocode to AskCodi for diverse AI models. Use different models for different coding modes.
Why Connect Kilocode to AskCodi?
Kilocode uses standard providers by default. Connect AskCodi for specialized models. Use fast models for Ask Mode. Use powerful models for Architect Mode.
Prerequisites
- VS Code or JetBrains IDE with Kilocode extension
- AskCodi account with API key
- Internet connection
- Basic IDE settings knowledge
Your API key connects to multiple AskCodi models via single endpoint.
Step 1: Install Kilocode Extension
For VS Code:
- Open Extensions (Ctrl+Shift+X)
- Search "Kilocode"
- Install extension (ID: kilocode.kilocode)
For JetBrains:
- Go to Settings > Plugins
- Search "Kilocode"
- Install extension
- Restart IDE after installation
Step 2: Open Kilocode Settings
- Click Kilocode icon in IDE sidebar
- Look for API Provider settings section
- Find main configuration panel or settings gear icon
Step 3: Select OpenAI Compatible Provider
- In API Provider dropdown, select "OpenAI Compatible"
- This enables OpenAI-compatible API services like AskCodi
Step 4: Configure Base URL
- Enable "Use custom base URL" option
- Enter AskCodi API endpoint:
https://api.askcodi.com/v1
Step 5: Add API Key
- Go to AskCodi dashboard and copy API key
- In Kilocode settings, find API Key field
- Paste your AskCodi API key
- Keep key secure
Step 6: Configure Models
After adding API key, Kilocode fetches models from AskCodi. Choose models for different modes:
- Ask Mode: Fast, accurate response models
- Code Mode: Code generation and understanding models
- Architect Mode: Strong reasoning models
- Debug Mode: Problem-solving models
Step 7: Test Integration
- Test Ask Mode with simple query
- Test Code Mode with multi-step request
- Verify responses come through with good response times
Optimization Tips
Model Strategy: Use different models for different tasks. Fast models for Ask Mode. Powerful models for Architect Mode.
Usage Monitoring: Check AskCodi dashboard to monitor API usage across Kilocode modes.
Performance: If responses are slow, try different models or check internet connection.
Security: Rotate API key periodically in AskCodi and update in Kilocode.
Troubleshooting
Connection Failures:
- Verify URL: https://api.askcodi.com/v1
- Confirm API key is correct
- Check internet and firewall settings
Authentication Errors:
- Check API key formatting (no extra spaces)
- Regenerate key if needed
Model Loading Issues:
- Refresh model list or restart IDE
- Confirm AskCodi account has model access
Performance Problems:
- Try different models
- Check internet connection
- Some models may have high load
Key Steps
- Install Kilocode extension
- Open Kilocode settings in IDE sidebar
- Select OpenAI Compatible provider
- Use API URL: https://api.askcodi.com/v1
- Add AskCodi API key securely
- Select models for different Kilocode modes
- Test integration with simple query
Connect Kilocode to AskCodi for specialized AI models across all coding modes.
Falta algo ou está errado neste guia? Fale connosco