Continue Integration
Learn how to use Nia AI with Continue code assistant
This guide explains how to set up Nia AI in Continue to enhance your coding experience with Nia Agent.
- You need a personal Nia API key to get started.
Overview
Continue is a powerful AI coding assistant that helps you write, understand, and improve code. By integrating Nia AI with Continue, you can leverage Nia’s advanced code understanding capabilities directly in your workflow.
Messages sent in Continue will be logged in your External folder, allowing you to continue your conversations in the Nia web app.
API Key Options
Nia offers two types of API keys for integration with Continue:
-
V2 API Key: Costs 0.10 cents per request. Suitable for occasional use or testing.
-
IDE API Key: Included in the Nia Pro plan ($14.99/month). Provides unlimited integration with Continue and other tools.
Choose the option that best fits your usage needs.
Rate Limits
All Nia API keys have a default rate limit of 60 requests per minute. This ensures optimal performance and fair usage across all users.
Pro plan users can request increased rate limits by contacting our support team.
Installation
Access Continue Settings
-
Open Continue
-
Click on the Settings icon in the bottom right corner of the extension
-
Navigate to the
config.json
file
Configure Nia AI
Add the following JSON to the models array:
Replace {$NIA_API_KEY}
with your actual Nia API key.
Save and Apply
-
Save the
config.json
file -
Restart Continue if necessary
-
Nia AI will now be available as a model in Continue
Usage
Features
Enhanced Context
-
Improved code understanding
-
Project-wide context awareness
-
More relevant code suggestions
Conversation Continuity
-
Seamless transition between Continue and Nia
-
Persistent conversation history
-
Cross-platform context retention
Advanced Code Assistance
-
Deeper code analysis
-
More accurate bug detection
-
Better code completion
Integrated Experience
-
Native-feeling integration
-
Familiar interface
-
Consistent user experience
Best Practices
Performance Optimization
-
Be aware of higher latency due to context retrieval
-
Use specific, focused queries
-
Provide clear context when needed
Effective Queries
-
Be specific about code sections
-
Reference file paths when relevant
-
Break complex questions into smaller parts
Troubleshooting
Configuration Issues
Configuration Issues
-
Verify your JSON syntax in the
config.json
file -
Ensure you’ve replaced
{$NIA_API_KEY}
with your actual API key -
Check that the
apiBase
is exactlyhttps://apigcp.trynia.ai
High Latency Issues
High Latency Issues
-
Expect some additional latency compared to foundational models
-
This is normal due to additional context retrieval steps
-
Consider optimizing your queries for more focused responses
Model Not Appearing
Model Not Appearing
-
Verify the
config.json
was saved correctly -
Restart Continue completely
-
Check for any error messages in the Continue logs
FAQ
Why is there higher latency when using Nia AI?
Why is there higher latency when using Nia AI?
Nia AI performs additional context retrieval steps to provide more accurate and relevant responses, which can increase response time compared to foundational models.
Can I switch between Nia AI and standard models?
Can I switch between Nia AI and standard models?
Yes, you can easily switch between Nia AI and other models in Continue by selecting a different model from the dropdown.
Where can I find my conversation history?
Where can I find my conversation history?
Your conversations will be logged in your External folder and can be accessed through the Nia web app.
Which API key should I choose?
Which API key should I choose?
If you’re a professional developer using Continue regularly, the Pro plan with unlimited integration is more cost-effective. For occasional use, the pay-per-request V2 API key might be sufficient.