Docs/Connect your agent

Connect your agent

Add Nexlayer to Claude Code, Cursor, Codex, Devin, Claude, ChatGPT and any other agent. One command for coding agents, one URL for everything else.

Nexlayer connects to your agent over MCP (Model Context Protocol), the open standard agents use to work with other services. Once it's connected, you just ask:

  • •“Deploy this repo to Nexlayer.”
  • •“Is my app up? Check the logs.”
  • •“Add a Postgres database and redeploy.”
  • •“Point app.mydomain.com at it.”

The first time your agent uses Nexlayer, it opens a Nexlayer sign-in in your browser. No API key goes into a config file.

The Nexlayer MCP URL

Every agent below connects to this one address:

url
https://mcp.nexlayer.ai/api/mcp

Coding agents: one command

Run this in your terminal. It finds the coding agents on your computer, signs you in to Nexlayer and adds the MCP to each one. Restart your agent afterwards.

bash
npx @nexlayer/mcp-install

Finds Claude Code, Cursor, VS Code (Copilot), Gemini CLI, Zed, Amazon Q and Antigravity. For anything else, use the steps below.

Coding agents

Claude Code

Run the installer above, or add the server yourself:

bash
claude mcp add --transport http nexlayer https://mcp.nexlayer.ai/api/mcp

Cursor

Run the installer above, use the one-click button, or open Settings → Tools & Integrations → MCP and add a server with this in ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "nexlayer": { "url": "https://mcp.nexlayer.ai/api/mcp" }
  }
}

Codex

The installer doesn't cover Codex yet. Add the server, then sign in:

bash
codex mcp add nexlayer --url https://mcp.nexlayer.ai/api/mcp
codex mcp login nexlayer

VS Code and Copilot

Run the installer above, or open the Command Palette, run MCP: Add Server, choose HTTP and paste https://mcp.nexlayer.ai/api/mcp. Copilot uses it in agent mode.

Gemini CLI

Run the installer above, or add the server yourself:

bash
gemini mcp add --transport http nexlayer https://mcp.nexlayer.ai/api/mcp

Devin

In Devin, go to Customizations → MCPs, click + and choose New MCP. Name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp, choose OAuth and sign in to Nexlayer.

Zed

Run the installer above, or run agent: open settings, add a custom server and paste https://mcp.nexlayer.ai/api/mcp.

Amazon Q Developer

Run the installer above, or add this to ~/.aws/amazonq/mcp.json (or .amazonq/mcp.json in a project):

json
{
  "mcpServers": {
    "nexlayer": { "url": "https://mcp.nexlayer.ai/api/mcp" }
  }
}

Any other agent

Any agent that takes a remote MCP server works. Add a server named nexlayer with the URL https://mcp.nexlayer.ai/api/mcp. It signs you in to Nexlayer the first time it's used.

Chat apps

Chat apps add Nexlayer as a connector with the URL above.

Claude

On claude.ai, go to Customize → Connectors, click + and choose Add custom connector. Name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp and sign in.

ChatGPT

Open Settings → Apps → Advanced settings and turn on Developer mode. Click Create, name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp, choose OAuth and sign in.

Grok Bot

In the Grok Bot desktop app (x.ai/bot), send this in any chat. Every bot on your account can use Nexlayer after that.

message
Connect the Nexlayer MCP: https://mcp.nexlayer.ai/api/mcp

Grok

On grok.com, open Settings → Connect Apps and click Add MCP Server. Name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp as the Server URL, click Add MCP and sign in.

Perplexity

Go to Settings → Connectors, click + Custom connector and choose Remote. Name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp, choose OAuth and sign in.

Muse

Send this in a Muse chat, then click Connect on the Nexlayer card. Enter nexlayer as the Client ID, paste https://mcp.nexlayer.ai/api/mcp as the Client secret and sign in to Nexlayer.

message
Connect the Nexlayer MCP: https://mcp.nexlayer.ai/api/mcp

Lovable

Go to Settings → Connectors → Personal connectors and click New MCP server. Name it Nexlayer, paste https://mcp.nexlayer.ai/api/mcp and sign in. Custom connectors need a paid Lovable plan.

Prefer a CLI?

Any coding agent with a terminal can ship with the Nexlayer CLI instead. Install it, sign in once with nexlayer login, then ask your agent to run nexlayer ship. More at nexlayer.com/cli.

bash
curl -fsSL https://nexlayer.com/cli/install.sh | bash

No agent?

Deploy straight from GitHub in the dashboard: sign in, click New Project and pick your repo. The app shows up for your agent too once you connect one.