Skip to main content

Model Configuration

PostQode supports multiple AI providers and models, giving you flexibility to choose the best option for your needs. You can configure models for both Chat and Agent modes.

Accessing Model Configuration

  1. Open VS Code with PostQode extension installed
  2. Click on the PostQode icon in the sidebar to open the PostQode panel
  3. Click on the Settings icon (gear icon) in the PostQode panel
  4. Navigate to the Model Configuration section

Operating Modes

PostQode offers two distinct modes for different use cases:

Plan Mode

  • Interactive conversational interface
  • Best for quick questions and discussions
  • Lightweight model usage
  • Real-time responses

Agent Mode

  • Advanced task execution capabilities
  • Tool usage and file operations
  • Complex workflow automation
  • Extended context handling

Supported API Providers

PostQode supports a wide range of AI providers:

Premium Providers

  • PostQode - Integrated provider with optimized models
  • Anthropic - Claude models with advanced reasoning
  • OpenAI - GPT models with various capabilities
  • Google Gemini - Google's multimodal AI models
  • Amazon Bedrock - Enterprise-grade AI models
  • GCP Vertex AI - Google Cloud AI platform

Budget-Friendly Options

  • OpenRouter - Access to multiple models through one API
  • Groq - High-speed inference
  • DeepSeek - Cost-effective models
  • Together - Open-source model hosting
  • Fireworks AI - Fast inference platform

Local and Self-Hosted

  • Ollama - Run models locally
  • LM Studio - Local model management
  • LiteLLM - Universal LLM proxy

OpenRouter Configuration

OpenRouter provides access to multiple AI models through a single API, making it an excellent choice for cost-conscious users and those wanting model variety.

Setting Up OpenRouter

  1. Get API Key: Visit OpenRouter to obtain your API key
  2. Configure in PostQode:
    • Select "OpenRouter" from the API Provider dropdown
    • Enter your OpenRouter API Key
    • Choose from available models

OpenRouter Benefits

  • Cost Effective: Access to free and low-cost models
  • Model Variety: Choose from dozens of different models
  • No Vendor Lock-in: Switch between models easily
  • Transparent Pricing: Clear cost per token pricing

Free Models Available

OpenRouter offers several free models that are perfect for getting started:

  • Free Tier Models: Various open-source models with no cost
  • Rate Limited: Some models have usage limits but are free
  • Community Models: Models supported by the community

Anthropic Configuration

API Key Setup

  1. Obtain your Anthropic API key (sk-ant-...) directly from the Anthropic Console.
  2. Enter the key in the "Anthropic API Key" field.
  3. The key is stored locally in secure OS storage and only used for API requests.

Custom Configuration Options

Base URL Override

  • Use custom base URL: Enable for self-hosted, local runtime (Ollama, LM Studio), or enterprise proxy endpoints.
  • Useful for enterprise deployments or custom routing.

Model Selection & Custom Model ID

  • Standard Providers: Choose from available models in the dropdown (e.g. Claude 3.7 Sonnet, GPT-4o, Gemini 2.5 Pro).
  • OpenAI-Compatible & Local Providers: Because endpoints may not advertise static catalogs, type the Model ID directly (e.g. qwen2.5-coder:32b, deepseek-r1:70b).

API Key Management

  • Store keys securely in PostQode settings
  • Keys are encrypted and stored locally
  • Never share API keys in code or documentation
  • Rotate keys regularly for security