---
title: "Add an account by running the provider's own sign-in in a terminal"
method: POST
path: "/api/v1/agents/accounts/login"
tags: ["agents"]
---

# Add an account by running the provider's own sign-in in a terminal

`POST /api/v1/agents/accounts/login`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/agents/accounts/login`
- Auth: none declared

## Request body

- StartAgentAccountLoginRequest
  - `provider` 'claude' | 'codex', required

## Response `202`

Accepted

- StartAgentAccountLoginResponse
  - `operationId` string, required
  - `provider` 'claude' | 'codex', required
  - `shellTerminal` CodexAccountLoginTerminalResponse, required
    - `createdAt` string, date-time, required
    - `handleId` string, required
    - `title` string, required

## Other responses

- `400`: Bad Request
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 2 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-18** `7e984b9a98ab`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/agents/accounts/login/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
