---
title: "Execute TUI command"
method: POST
path: "/tui/execute-command"
---

# Execute TUI command

`POST /tui/execute-command`

Execute a TUI command (e.g. agent_cycle)

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `command` string, required

## Response `200`

Command executed successfully

- boolean

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
