Continue.Dev IDE Integration

Bring Ask Sage’s into your development environment with Continue.Dev—available for Visual Studio Code and all JetBrains IDEs.

Continue.Dev Interface

Table of Contents
  1. Continue.Dev IDE Integration
    1. Prerequisites
      1. Installing Continue
    2. Quick Setup
      1. Step 1: Choose Your Model Provider
      2. Step 2: Add Additional Models (Optional)
    3. Configuration
      1. Standard Configuration
        1. Example YAML Configuration
    4. DoD Certificate Configuration
      1. Step 1: Download DoD Certificates
      2. Step 2: Convert Certificate Format
      3. Step 3: Update Configuration with Certificate
    5. Environment-Specific Configurations
      1. Army GenAI Environment
    6. Features & Capabilities
    7. Activation & Testing
      1. Final Steps
      2. Quick Test
    8. Troubleshooting
      1. Model Not Appearing
      2. Certificate Errors
      3. Connection Issues
      4. Performance Issues
    9. Additional Resources
      1. Documentation
      2. Support

Prerequisites

Before you begin, ensure you have:

Requirement Details
Ask Sage Account Sign up or log in
API Key Generate your key
Continue Plugin Install from your IDE’s marketplace

Installing Continue

Continue Marketplace
  1. Open your IDE’s extension/plugin marketplace
  2. Search for “Continue”
  3. Click Install
  4. Restart your IDE when prompted

Quick Setup

Step 1: Choose Your Model Provider

After installing Continue, you’ll see a setup wizard. Creating a Continue account is optional—you can skip directly to configuration.

  1. Open the Continue sidebar in your IDE
  2. Select Ask Sage as your model provider
  3. Choose your preferred model from the list
  4. Enter your API key and base URL
Model Selection

API Base URL
Use the base URL provided when you created your API key. This varies by tenant:

  • Production: https://api.asksage.ai/server/
  • Army GenAI: https://api.genai.army.mil/server/

Step 2: Add Additional Models (Optional)

You can add multiple models and switch between them:

  1. Click on the current model name in the Continue sidebar
  2. Select Add Model from the dropdown
  3. Choose another Ask Sage model
  4. Switch between models anytime using the dropdown
Complete Setup

If you don’t see a specific model in the UI, you can add it manually via the configuration file. Ensure the model is available on your tenant and use the exact model key from the Ask Sage /get-models endpoint.


Configuration

Standard Configuration

How to add your Ask Sage models to the Continue configuration file:

Configuration File Locations:

  • VS Code: ~/.continue/config.yaml
  • JetBrains: ~/.continue/config.yaml (Mac/Linux) or C:\Users\{username}\.continue\config.yaml (Windows)

Example YAML Configuration

name: Ask Sage Integration
version: 1.0.0
schema: v1

models:
  - name: Google Gemini 2.5 Pro
    provider: askSage
    model: google-gemini-2.5-pro
    apiKey: YOUR_API_KEY
    apiBase: https://api.dev.asksage.ai/server/
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
      - image_input

  - name: Anthropic Claude 4 Sonnet
    provider: askSage
    model: google-claude-4-sonnet
    apiKey: YOUR_API_KEY
    apiBase: https://api.dev.asksage.ai/server/
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
      - image_input

  - name: GPT-5
    provider: askSage
    model: gpt-5
    apiKey: YOUR_API_KEY
    apiBase: https://api.dev.asksage.ai/server/
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
      - image_input

  - name: Anthropic Claude 4.5 Sonnet
    provider: askSage
    model: google-claude-45-sonnet
    apiKey: YOUR_API_KEY
    apiBase: https://api.dev.asksage.ai/server/
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
      - image_input

Replace YOUR_API_KEY with your actual Ask Sage API key.


DoD Certificate Configuration

For secure government environments requiring DoD PKI certificates, follow this process. These steps work identically for VS Code and JetBrains IDEs.

Step 1: Download DoD Certificates

  1. Navigate to DoD Cyber Exchange PKI/PKE
  2. Download “PKI CA Certificate Bundles: PKCS#7 for DoD PKI Only” (latest version)
  3. Extract the downloaded ZIP file (e.g., unclass-certificates_pkcs7_DoD.zip)
  4. Locate the .der.p7b file (e.g., Certificates_PKCS7_v5_14_DoD.der.p7b)
  5. Save to a permanent location on your system

Step 2: Convert Certificate Format

Open a terminal with OpenSSL (Git Bash on Windows works well):

# Navigate to your certificate directory
cd /path/to/certificates

# Convert DER to PEM format
openssl pkcs7 \
  -in Certificates_PKCS7_v5_14_DoD.der.p7b \
  -inform DER \
  -print_certs \
  -out Certificates_PKCS7_v5_14_DoD.der.pem

This creates the .pem file required for Continue configuration.

Step 3: Update Configuration with Certificate

Add the requestOptions section to your model configuration:

models:
  - name: GPT-4 Gov
    provider: askSage
    model: gpt4-gov
    apiBase: https://api.asksage.ai/server/
    apiKey: YOUR_ASK_SAGE_API_KEY
    requestOptions:
      caBundlePath: /path/to/Certificates_PKCS7_v5_14_DoD.der.pem
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use

Path Format

  • Windows: Use forward slashes or escaped backslashes
    C:/Users/username/certs/cert.pem or C:\\Users\\username\\certs\\cert.pem
  • Mac/Linux: Standard Unix paths
    /Users/username/certs/cert.pem

Environment-Specific Configurations

Army GenAI Environment

For users on the Army GenAI platform:

models:
  - name: GPT-4 Gov (Army)
    provider: askSage
    model: gpt4-gov
    apiKey: YOUR_API_KEY
    apiBase: https://api.genai.army.mil/server/
    requestOptions:
      caBundlePath: /path/to/Certificates_PKCS7_v5_14_DoD.der.pem
    roles:
      - chat
      - edit
      - apply

Getting Your Army GenAI API Key:

  1. Visit https://chat.genai.army.mil/
  2. Click the Settings icon (⚙️) in the bottom left
  3. Navigate to the Account tab
  4. Find “Manage your API Keys”
  5. Click Create New Key and copy it immediately

Features & Capabilities

Continue.Dev with Ask Sage supports:

Feature Description Use Case
💬 Chat Interactive AI conversations in the sidebar Ask questions, brainstorm solutions, debug issues
✏️ Edit In-place code modifications Refactor functions, fix bugs, improve code quality
🖼️ Image Input Analyze screenshots and diagrams Debug UI issues, understand architecture diagrams
🔧 Tool Use Execute functions and commands Run tests, query databases, interact with APIs

Activation & Testing

Final Steps

  1. Save your config.yaml file
  2. Restart your IDE completely (or reload the Continue plugin)
  3. Open the Continue sidebar
  4. Verify your Ask Sage model appears in the model dropdown

Quick Test

Try asking Continue a simple question:

What's the difference between async and sync functions in Python?

If you receive a response, your setup is complete! 🎉


Troubleshooting

Model Not Appearing

Issue: Model doesn’t show up in Continue sidebar

Solutions:

  • ✅ Verify API key is correct (no extra spaces)
  • ✅ Confirm config.yaml is in the correct location
  • ✅ Check YAML syntax (indentation matters!)
  • ✅ Restart IDE completely (not just reload window)
  • ✅ Check Continue logs for errors (View → Output → Continue)

Certificate Errors

Issue: SSL/TLS certificate validation failures

Solutions:

  • ✅ Verify .pem file path is absolute and correct
  • ✅ Use forward slashes in paths (even on Windows)
  • ✅ Ensure certificate conversion completed successfully
  • ✅ Download the latest DoD certificate bundle
  • ✅ Check file permissions (must be readable)

Connection Issues

Issue: Cannot connect to Ask Sage API

Solutions:

  • ✅ Confirm correct apiBase URL for your environment
  • ✅ Check firewall/proxy settings

Performance Issues

Issue: Slow responses or timeouts

Solutions:

  • ✅ Check your internet connection speed
  • ✅ Try a different model (some are faster than others)
  • ✅ Reduce context size in Continue settings

Additional Resources

Documentation

Support


Need Help?

If you encounter issues not covered here, reach out to support@asksage.ai with:

  • Your IDE and version
  • Continue plugin version
  • Relevant error messages from Continue logs
  • Your config.yaml (with API key redacted)

Back to top

Copyright © 2025 Ask Sage Inc. All Rights Reserved.