Continue.dev
Configure Continue.dev, the open-source AI code assistant, to use Eden AI for access to 200+ models.Overview
Continue.dev is an open-source autopilot for VS Code and JetBrains IDEs. By connecting it to Eden AI, you get:- 200+ models: Access OpenAI, Anthropic, Google, Cohere, and more
- Cost savings: Leverage Eden AI’s competitive pricing
- Provider flexibility: Switch models instantly without changing configuration
Installation
Install Continue.dev from your IDE marketplace:VS Code
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for “Continue”
- Click Install
JetBrains IDEs
- Open your JetBrains IDE (IntelliJ, PyCharm, etc.)
- Go to Plugins (Ctrl+Alt+S / Cmd+,)
- Search for “Continue”
- Click Install
Configuration
Configure Continue to use Eden AI’s OpenAI-compatible endpoint.Step 1: Open Configuration
In VS Code or JetBrains:- Click the Continue icon in the sidebar
- Click the gear icon (⚙️) to open settings
- This opens
~/.continue/config.json
Step 2: Configure Eden AI
Replace the configuration with:Step 3: Save and Reload
- Save the configuration file
- Reload your IDE or click “Reload” in Continue
Available Models
You can add any model from Eden AI’s catalog:Chat Models
Features
Chat
Open the Continue sidebar and start chatting with AI:- Select your model from the dropdown
- Type your question or request
- Get instant responses
- “Explain this code”
- “Add error handling to this function”
- “Write tests for this component”
Inline Editing
Select code and use Continue to edit it:- Highlight code
- Press Cmd+I (Mac) / Ctrl+I (Windows/Linux)
- Describe your changes
- Review and accept
- “Add type hints”
- “Refactor this to use async/await”
- “Simplify this logic”
Tab Autocomplete
Continue provides intelligent code completion:- Start typing
- Continue suggests completions
- Press Tab to accept
Slash Commands
Use slash commands for common tasks:/edit- Edit selected code/comment- Add comments/test- Generate tests/fix- Fix errors/explain- Explain code
Advanced Configuration
Custom Context Providers
Add codebase context for better responses:Model-Specific Settings
Configure temperature and other parameters per model:Environment Variables
Use environment variables for API keys:Use Cases
Code Generation
Generate entire functions or classes:- Open Continue chat
- Describe what you need: “Create a Python class for user authentication with login, logout, and token refresh methods”
- Review and insert the generated code
Code Review
Get AI-powered code reviews:- Select code
- Open Continue chat
- Ask: “Review this code for security issues and performance improvements”
Documentation
Generate documentation automatically:- Select a function
- Use
/commentcommand - Continue adds comprehensive docstrings
Debugging
Get help with errors:- Copy error message
- Open Continue chat
- Ask: “How do I fix this error?” and paste the error
Refactoring
Modernize legacy code:- Select old code
- Use
/editcommand - Ask: “Refactor this to use modern Python features”
Troubleshooting
Models Not Appearing
If models don’t appear in the dropdown:- Check
config.jsonsyntax is valid (use a JSON validator) - Ensure
apiBaseis exactly:https://api.edenai.run/v3/llm - Reload the IDE
Authentication Errors
If you see 401 errors:- Verify your Eden AI API key in
config.json - Check there are no extra spaces in the API key
- Test the API key manually:
Slow Responses
If responses are slow:- Use faster models for autocomplete (
gpt-3.5-turbo) - Reduce
maxTokensin completion options - Check your internet connection
Context Issues
If Continue doesn’t understand your codebase:- Add relevant context providers
- Include specific files using
@filein chat - Use folder context for project-wide understanding
Keyboard Shortcuts
VS Code
Cmd/Ctrl + I- Inline editCmd/Ctrl + Shift + L- Open Continue sidebarCmd/Ctrl + Shift + R- Re-run last command
JetBrains
Alt + Enter- Show Continue actionsCmd/Ctrl + Shift + C- Open Continue chat
Best Practices
1. Choose the Right Model
- Quick edits: Use
openai/gpt-3.5-turbofor speed - Complex reasoning: Use
anthropic/claude-3-5-sonnet-20241022 - Autocomplete: Use
openai/gpt-3.5-turbofor low latency
2. Provide Context
Add context to get better responses:- Tag files with
@filename - Include error messages
- Describe the broader goal
3. Iterate
Don’t expect perfect results immediately:- Review generated code
- Ask for adjustments
- Combine AI suggestions with your expertise
4. Use Slash Commands
Leverage built-in commands for common tasks:/editfor modifications/testfor test generation/fixfor error resolution
Example Workflows
Building a New Feature
- Chat: “Help me design a REST API endpoint for user registration”
- Review the suggested structure
- Use
/editto implement the endpoint - Use
/testto generate unit tests - Use
/commentto add documentation
Debugging
- Copy the error traceback
- Chat: “Explain this error and suggest a fix: [paste error]”
- Review the explanation
- Use
/fixon the problematic code - Test the solution
Code Review
- Select a function
- Chat: “Review this for security, performance, and maintainability”
- Review suggestions
- Use
/editto apply improvements - Use
/testto ensure nothing broke
Next Steps
- VS Code Integration - More VS Code AI tools
- Claude Code - Official Claude CLI
- Cline - Another powerful VS Code extension
- API Reference - Eden AI API documentation