---
title: "Register a new codex remote executor for a workspace"
method: POST
path: "/api/workspaces/{wid}/executors"
tags: ["Misc"]
---

# Register a new codex remote executor for a workspace

`POST /api/workspaces/{wid}/executors`

## Path parameters

- `wid` string, required

## Request body

- ExecutorRegisterRequest
  - `description` string
  - `name` string, required

## Response `201`

Created

- ExecutorRegisterResponse
  - `agent_identity_jwt` string
  - `connect_command` string
  - `connect_commands` ExecutorConnectCommands
    - `agent_identity` string, required
  - `exe_id` string, required

## Other responses

- `400` — bad request / invalid name
- `401` — unauthorized
- `403` — insufficient role (owner/maintainer required)
- `502` — upstream gateway error
- `503` — executors not configured

## Changes

> 20 revisions in range; 1 could not be searched.

- **2026-05-22** `a533774946d2` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentserver/apis/agentserver-api/changes/api/workspaces/:wid/executors/post.md)

---

[API](https://skmtc.dev/agentserver/apis/agentserver-api.md) · [All operations](https://skmtc.dev/agentserver/apis/agentserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentserver/agentserver-api/revisions/e8c329825b4e/schema)
