Get API key

Coding agents

Use PrivateMind with your favorite coding agent, IDE, or editor. OpenAI-compatible endpoint, no proxy required.

Every major coding agent and AI-powered IDE speaks the OpenAI API. PrivateMind is the same shape, just a different base URL.

Swap https://api.openai.com for https://api.privatemind.com, paste your PMIND key, and pick a model from your org's catalog.

The general setup

Setting Value
Base URL https://api.privatemind.com/v1
API key Your PMIND key from Settings → API Keys
Model Anything from your catalog: fast, reasoning, or a specific model id

If your tool lets you set a custom OpenAI-compatible endpoint, it works. The tool sends prompts, PrivateMind responds. No proxy, no local server.

Cline

Cline is a VS Code extension for AI-assisted coding. File edits, terminal commands, completions.

1. Install
Open VS Code → Extensions → search Cline → Install.

2. Open provider settings
Click the Cline icon in the Activity Bar, open Settings (⚙), and choose OpenAI Compatible.

3. Fill in PrivateMind

Setting Value
Base URL https://api.privatemind.com/v1
API Key Your PMIND key
Model ID fast or any model from your catalog

Click Done. Cline now routes every completion through PrivateMind.

4. Test it
Open a file, ask Cline to explain a function or refactor something. Responses come from your org's models, not OpenAI's.

Note

Cline stores your API key locally in VS Code settings. It never sends it to Cline's servers.

Cursor

Cursor is an AI-native code editor. Composer, Cmd+K, and tab completion all support custom providers.

  1. Open Cursor Settings → Models.
  2. Scroll to OpenAI API.
  3. Turn on Use your own key.
  4. Set:
    • OpenAI Base URL: https://api.privatemind.com/v1
    • OpenAI API Key: Your PMIND key

Cursor composers and completions now run on your PrivateMind deployment instead of Cursor's built-in models.

Warning

Cursor is a closed-source product with its own privacy policy. Switching to BYOK mode means your prompts go to PrivateMind, but Cursor still collects usage metadata (feature analytics, not prompt content) according to their terms. Read Cursor's privacy policy if that matters for your org.

Kilo Code

Kilo Code is an open-source coding agent for VS Code and JetBrains IDEs, built on OpenCode. Chat, agent mode and multi-file edits. It replaces Continue, which is no longer maintained.

1. Install
In VS Code, open Extensions, search Kilo Code and install it. In a JetBrains IDE, open Settings → Plugins → Marketplace and install Kilo Code. Open Kilo Code once so it creates its config.

2. Add PrivateMind as a provider
Edit Kilo's global config, ~/.config/kilo/kilo.jsonc (on Windows, %USERPROFILE%\.config\kilo\kilo.jsonc). VS Code, JetBrains and the kilo CLI all read this file:

JSON
{
  "$schema": "https://app.kilo.ai/config.json",
  "model": "privatemind/fast",
  "provider": {
    "privatemind": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "PrivateMind",
      "options": {
        "baseURL": "https://api.privatemind.com/v1",
        "apiKey": "PMIND...:..."
      },
      "models": {
        "fast": {
          "name": "Fast",
          "limit": { "context": 128000, "output": 4096 }
        },
        "reasoning": {
          "name": "Reasoning",
          "limit": { "context": 200000, "output": 65536 }
        }
      }
    }
  }
}

In VS Code you can add the same provider from Kilo's Settings (⚙) instead: Providers → Custom provider, Provider API OpenAI Compatible, Base URL https://api.privatemind.com/v1, your PMIND key, then Fetch models to pick from your catalog. Context and output limits can only be set in the file.

3. Test it
Pick a PrivateMind model in Kilo's model picker and ask it to explain or change some code. Chat and agent requests go to your org's models.

Note

Kilo's inline autocomplete runs on Kilo's own gateway, not on a custom provider, so it does not use PrivateMind.

OpenCode

OpenCode is a terminal-based coding agent that talks to any provider via the AI SDK.

Edit opencode.json (project root or ~/.config/opencode/opencode.json):

JSON
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "privatemind": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "PrivateMind",
      "options": {
        "baseURL": "https://api.privatemind.com/v1",
        "apiKey": "PMIND...:..."
      },
      "models": {
        "fast": {
          "name": "Fast",
          "limit": { "context": 128000, "output": 4096 }
        },
        "reasoning": {
          "name": "Reasoning",
          "limit": { "context": 200000, "output": 65536 }
        }
      }
    }
  }
}

Run npx opencode and pick the PrivateMind provider in /models. Done.

Note

OpenCode is open-source and runs locally. It does not store your code or context data.

Claude Code

Claude Code speaks the Anthropic Messages API, which PrivateMind also serves (Messages API). Point it at PrivateMind with environment variables:

cURL
export ANTHROPIC_BASE_URL=https://api.privatemind.com
export ANTHROPIC_AUTH_TOKEN="PMIND...:..."
export ANTHROPIC_MODEL=<model-id>
export ANTHROPIC_DEFAULT_OPUS_MODEL=<model-id>
export ANTHROPIC_DEFAULT_SONNET_MODEL=<model-id>
export ANTHROPIC_DEFAULT_HAIKU_MODEL=<model-id>
export CLAUDE_CODE_SUBAGENT_MODEL=<model-id>
claude

Set every model variable. Claude Code runs background tasks (titles, summaries) on its small-model slot, and an unset slot asks for a claude-* model name that PrivateMind does not have. You can put a faster model in the Haiku slot and a stronger one in the others.

Two of Claude Code's web tools behave differently through PrivateMind:

  • WebSearch runs as a server-side tool on Anthropic's API. PrivateMind does not run it, and does not return an error either: the model answers the search from what it already knows, without searching. Do not rely on its results being current.
  • WebFetch fetches pages from your machine, but first asks api.anthropic.com whether each domain is allowed. That check sends every fetched domain to Anthropic, and fails where api.anthropic.com is blocked. Set "skipWebFetchPreflight": true in Claude Code's settings to turn it off.

Everything else works: file edits, the shell, subagents, MCP servers and hooks.

KX qSQL suggester

mcp-qsql-suggester is KX's MCP server for writing q/kdb+ queries. It exposes one tool, generate_qsql, which draws several candidates from the qsql-qwen35-9b model, parses and runs each one, and returns the shortest of the largest group that agree. You run the server yourself and point it at PrivateMind for the model.

Install it from their README, then start it against PrivateMind:

cURL
VLLM_BASE_URL=https://api.privatemind.com/v1 \
  VLLM_API_KEY=$PMIND_KEY \
  MCP_QSQL_HOST=127.0.0.1 \
  python -m mcp_server.server --transport streamable-http

Nothing else changes: the model name it looks for, qsql-qwen35-9b, is the id PrivateMind serves it under. Check it is in your org's catalog with GET /v1/models first. Then point your MCP client at http://127.0.0.1:9000/mcp.

Their repo also ships two Claude Code skills, /qsql-coder and /qsql-coder-quick, that drive the tool and check what comes back.

Warning

The server runs the q it generates and has no authentication of its own, so keep it on loopback or behind something that authenticates. Their README covers running it for a team.

What works

Because PrivateMind is OpenAI-compatible, these tools and many more work out of the box:

  • VS Code extensions: Cline, Kilo Code, Tabnine (BYOK mode), Codeium (BYOK mode)
  • IDEs: Cursor, Windsurf, Zed
  • Terminal tools: Aider, Opencode, ollama (with remote endpoint configured)
  • Automation: n8n, Make.com, Zapier (use the HTTP module with the OpenAI format)

If it asks for an OpenAI API key or base URL, give it your PMIND key and https://api.privatemind.com/v1. Claude Code and other tools built on the Anthropic API are set up differently: see Claude Code above.

Where next