NEXUS AI Agent Interface · Markdown source · nexusai.run

NEXUS AI Quick Start for Agents

This page gets an AI agent from zero to a working NEXUS AI connection. Pick MCP for conversational agents, or the REST API for scripts and CI.

Option 1: MCP (recommended for agents)

The MCP server is at https://mcp.nexusai.run/mcp (streamable HTTP). It exposes 74 tools.

Claude Code:

claude mcp add --transport http nexus-ai https://mcp.nexusai.run/mcp

Claude Desktop, in claude_desktop_config.json:

{
  "mcpServers": {
    "nexus-ai": { "type": "http", "url": "https://mcp.nexusai.run/mcp" }
  }
}

Cursor: Settings, MCP, Add server, with the same URL. ChatGPT and other clients that support remote MCP servers use the same URL.

Sign-in uses OAuth 2.0 with PKCE and dynamic client registration. The client opens a browser on first connect and the user approves the requested scopes. Headless clients run the same flow once and send the access token as Authorization: Bearer <token>.

Personal access tokens (nxk_...) are for the REST API, not for MCP.

Option 2: REST API

  1. Create an access token in the dashboard at https://nexusai.run/settings/tokens, or with nexus token create. See Access tokens.
  2. Call the API with Authorization: Bearer nxk_....
curl -H "Authorization: Bearer $NEXUSAI_TOKEN" https://mcp.nexusai.run/api/gpt/deployments

The schemas are in OpenAPI.

First tasks

Rules for agents

Related resources