---
title: "Register a direct CLI connection"
method: POST
path: "/api/connect"
tags: ["Connections"]
---

# Register a direct CLI connection

`POST /api/connect`

Registers a CLI tool directly without a gateway. Auto-creates agent if name doesn't exist.

## Request body

- object
  - `tool_name` string, required
  - `tool_version` string
  - `agent_name` string, required
  - `agent_role` string
  - `metadata` object

## Response `200`

Connection registered

- object
  - `connection_id` string, uuid
  - `agent_id` integer
  - `agent_name` string
  - `status` 'connected'
  - `sse_url` string
  - `heartbeat_url` string
  - `token_report_url` string

## Other responses

- `400` — Invalid request
- `401` — Authentication required

## Changes

- **2026-03-02** `39aff788d955` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/builderz-labs/apis/mission-control-api/changes/api/connect/post.md)

---

[API](https://skmtc.dev/builderz-labs/apis/mission-control-api.md) · [All operations](https://skmtc.dev/builderz-labs/apis/mission-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/builderz-labs/mission-control-api/revisions/751f6c65ac77/schema)
