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:

  1. V2 API Key: Costs 0.10 cents per request. Suitable for occasional use or testing.

  2. 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

1

Access Continue Settings

  1. Open Continue

  2. Click on the Settings icon in the bottom right corner of the extension

  3. Navigate to the config.json file

2

Configure Nia AI

Add the following JSON to the models array:

{
   "title": "Nia AI",
   "provider": "openai",
   "model": "gpt-4o",
   "apiKey": "{$NIA_API_KEY}",
   "apiBase": "https://api.trynia.ai"
}

Replace {$NIA_API_KEY} with your actual Nia API key.

3

Save and Apply

  1. Save the config.json file

  2. Restart Continue if necessary

  3. Nia AI will now be available as a model in Continue

Usage

# Select Nia AI from the model dropdown

# Ask coding questions

# Get context-aware responses

# Receive code suggestions

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

FAQ