Skip to main content
POST

Authorizations

Authorization
string
header
required

The token from api.json on the loopback listener; the remote token from remote.json (rakumux remote token) on the remote listener.

Headers

X-Rakumux-Session-Id
string

Act as this session (with X-Rakumux-Session-Token).

X-Rakumux-Session-Token
string

The session's RAKUMUX_SESSION_TOKEN.

X-Rakumux-Agent
string

Act for the session that bound this agent's conversation (with X-Rakumux-Agent-Conversation), e.g. opencode. Not with the session headers.

Pattern: ^[a-z0-9_-]{1,32}$
X-Rakumux-Agent-Conversation
string

The agent's conversation id, e.g. OpenCode's ses_….

Body

application/json
folder
string

Directory (absolute; ~/ expanded) or name of a known folder. Required for user callers; session callers may omit it (their own folder) and may not name another one (403 out_of_scope).

project
string
deprecated

Deprecated alias of folder. With both, they must name the same folder (400 otherwise).

name
string

Omitted → generated. Unique within the folder.

cwd
string

Start directory

command
string[]

argv instead of the user's login shell, e.g. ["claude"].

Minimum array length: 1
startup_commands
string[]

Typed into the shell after it starts.

cols
integer

0 or omitted → default.

Required range: 0 <= x <= 65535
rows
integer

0 or omitted → default.

Required range: 0 <= x <= 65535

Response

Created and running.

session
object
required