Русский · English

NeuralSpace for OpenCode and AI agents

Use one NeuralSpace key with OpenCode, Harness, Claude Code, Cursor, Continue, or any OpenAI-compatible and MCP client. Use https://neuralspace.pro/v1 for text models and https://neuralspace.pro/mcp for agent tools.

1. Create an API key

Sign in to NeuralSpace, open API keys, and create an nsk-... key. It is shown once, so save it in a secret manager or environment variable. Never commit it to git or put it in project code.

2. Save the key in your terminal

export NEURALSPACE_API_KEY="nsk-your-key"

Connection details: For every supported agent enter this Base URL: https://neuralspace.pro/v1; your nsk-... key; and one model ID: gpt-5-6-balanced (GPT-5.6 Terra), deepseek-v4-pro (DeepSeek V4 Pro), or glm-5.3-flash (GLM-5.3 Flash). These are current API-catalog IDs; the models available to you depend on your key.

OpenCode

Create or update opencode.json in the project. The block below is for current OpenCode 1.18+; after restarting, select neuralspace/gpt-5-6-balanced with /models.

Base URL: https://neuralspace.pro/v1 · Key: nsk-… · Models (the Models field): gpt-5-6-balanced, deepseek-v4-pro, glm-5.3-flash

{
  "$schema": "https://opencode.ai/config.json",
  "model": "neuralspace/gpt-5-6-balanced",
  "provider": {
    "neuralspace": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "NeuralSpace",
      "options": {
        "baseURL": "https://neuralspace.pro/v1",
        "apiKey": "{env:NEURALSPACE_API_KEY}"
      },
      "models": {
        "gpt-5-6-balanced": { "name": "GPT-5.6 Balanced" }
      }
    }
  }
}

Harness

The Harness CLI only needs the OpenAI-compatible URL, key, and model:

Base URL: https://neuralspace.pro/v1 · Key: nsk-… · Models (the Models field): gpt-5-6-balanced, deepseek-v4-pro, glm-5.3-flash

harness --base-url https://neuralspace.pro/v1 --api-key "$NEURALSPACE_API_KEY" --model gpt-5-6-balanced

Claude Code

NeuralSpace supports the Anthropic-compatible /v1/messages endpoint. Set these variables in your terminal before starting Claude Code:

Base URL: https://neuralspace.pro · Key: nsk-… · Models (the Models field): claude-sonnet-5, claude-opus-5, claude-haiku-4-5

export ANTHROPIC_BASE_URL="https://neuralspace.pro"
export ANTHROPIC_AUTH_TOKEN="$NEURALSPACE_API_KEY"
export ANTHROPIC_MODEL="claude-sonnet-5"
claude

Claude Code, Cursor, and any MCP client

MCP gives an agent NeuralSpace tools: live model and price list, balance, chat, image/video/music generation, speech, and transcription. Add it to Claude Code with:

MCP URL: https://neuralspace.pro/mcp · Key: Authorization: Bearer nsk-…

claude mcp add --transport http neuralspace https://neuralspace.pro/mcp --header "Authorization: Bearer $NEURALSPACE_API_KEY"

Cursor

For chat, open Settings → Models → API Keys, add an OpenAI key, enable Override OpenAI Base URL, and enter the connection details above. Add one of the listed IDs under Models. Put this MCP configuration in .cursor/mcp.json:

Base URL: https://neuralspace.pro/v1 · Key: nsk-… · Models (the Models field): gpt-5-6-balanced, deepseek-v4-pro, glm-5.3-flash

{
  "mcpServers": {
    "neuralspace": {
      "url": "https://neuralspace.pro/mcp",
      "headers": {
        "Authorization": "Bearer ${env:NEURALSPACE_API_KEY}"
      }
    }
  }
}

Continue

Open your user ~/.continue/config.yaml, save the complete block below, then set NEURALSPACE_API_KEY as a Continue secret (or in its .env file).

Base URL: https://neuralspace.pro/v1 · Key: nsk-… · Models (the Models field): gpt-5-6-balanced, deepseek-v4-pro, glm-5.3-flash

name: NeuralSpace
version: 1.0.0
schema: v1
models:
  - name: NeuralSpace GPT-5.6 Balanced
    provider: openai
    model: gpt-5-6-balanced
    apiBase: https://neuralspace.pro/v1
    apiKey: ${{ secrets.NEURALSPACE_API_KEY }}

Aider

Aider uses OpenAI-compatible Chat Completions. Pass it the Base URL, key, and model ID before starting it.

Base URL: https://neuralspace.pro/v1 · Key: nsk-… · Models (the Models field): gpt-5-6-balanced, deepseek-v4-pro, glm-5.3-flash

export OPENAI_API_KEY="$NEURALSPACE_API_KEY"
export OPENAI_API_BASE="https://neuralspace.pro/v1"
aider --model openai/deepseek-v4-pro

Codex CLI

NeuralSpace models cannot yet be used directly in Codex CLI: Codex CLI uses the OpenAI Responses API, while NeuralSpace provides compatible /v1/chat/completions. You can still add the NeuralSpace MCP server to Codex CLI for tools:

MCP URL: https://neuralspace.pro/mcp · Key: Authorization: Bearer nsk-…

codex mcp add neuralspace --url https://neuralspace.pro/mcp --bearer-token-env-var NEURALSPACE_API_KEY

Gemini CLI

NeuralSpace models cannot yet be used directly in Gemini CLI: Gemini CLI targets the Gemini API, not OpenAI Chat Completions. If your Gemini CLI version supports MCP, add the NeuralSpace tools with the command below (the key is expanded from the environment variable from step 2):

MCP URL: https://neuralspace.pro/mcp · Key: Authorization: Bearer nsk-…

gemini mcp add --transport http --header "Authorization: Bearer $NEURALSPACE_API_KEY" neuralspace https://neuralspace.pro/mcp

Windsurf

Windsurf has no supported custom OpenAI-compatible Base URL field for NeuralSpace models. Use the model selected in Windsurf, or add NeuralSpace MCP through MCP Servers if that section is available in your version.

MCP URL: https://neuralspace.pro/mcp · Key: Authorization: Bearer nsk-…

Check the connection

The command below lists models available to your key. If authentication fails, create a new key in the dashboard and make sure it was pasted without spaces.

curl https://neuralspace.pro/v1/models -H "Authorization: Bearer $NEURALSPACE_API_KEY"

Frequently asked questions

How much does using the models cost?

Usage is paid with tokens, and the price of every model is returned by the /v1/models catalog before you run anything. Over the 30 days from 04.09 to 04.10.2026 the platform processed 12,689 generations (9,907 images, 2,334 videos, 448 music tracks; source: NeuralSpace platform database, anonymized aggregates, N = 12,689).

Which models are available?

The set depends on your key; the catalog includes GPT-5.6 Terra, DeepSeek V4 Pro, GLM-5.3 Flash, Claude Sonnet 5 and others. The exact list for your key is returned by the check-connection command below.

Do I need a separate account for the API?

No: the same NeuralSpace account works in the web app and via the API. The key is created under “API keys”, and one key can be used both by a coding agent and through MCP.

Where are ready-made configuration examples?

The blocks above can be copied as is: OpenCode, Harness, Claude Code, Cursor, Continue, Aider and MCP clients. For agent tools (balance, image/video/music generation, speech) connect the MCP server.