AvenbayDocs

AVENBAY / DOCUMENTATION

Remote agents,
under your control.

Avenbay is a hosted, secure control plane for persistent CLI-agent sessions on machines you own. Connect a host once, then start, inspect, and resume agent work from the browser.

01Customer-owned compute
02Persistent tmux sessions
03Outbound WSS only
01

GET STARTED

From account to agent

The standard setup takes four steps. Your first account becomes the owner of a new organization; every resource created after that belongs to the same organization.

  1. Create your account

    Register in the Avenbay console with an organization name, email, and a password of at least 12 characters.

  2. Verify your email

    Open the verification link sent by Avenbay, then sign in. Verification links are single-use and valid for 24 hours.

  3. Connect a host

    In Hosts → Add host, name the machine and run the one-time enrollment command on it.

  4. Start a session

    Choose the connected host, project, working directory, and agent. Open its terminal or send a task without opening SSH.

02

IDENTITY

Accounts & teams

Each account belongs to exactly one organization. Organization membership comes from the authenticated server session—it is never selected or supplied by a browser API request.

OWNER

Organization control

Manages the organization, hosts, sessions, and teammates.

ADMIN / MEMBER

Daily operations

Admins can invite users and enroll hosts. Members operate authorized agent sessions.

VIEWER

Read-only access

Inspects organization resources without privileged changes.

Account lifecycle

  • Invitations are single-use and expire after seven days.
  • Password-reset links are single-use and expire after one hour.
  • Changing a password revokes all existing login sessions.
  • Authentication uses an opaque HTTP-only cookie; JavaScript cannot read its value.
03

BRING YOUR OWN COMPUTE

Connect a host

The worker is a small service installed next to your repositories and agent binaries. It establishes an authenticated outbound WebSocket connection to Avenbay and does not open a listener.

1. Generate an enrollment command

Open Hosts, select Add host, and enter a recognizable machine name. Avenbay displays a 15-minute, single-use command:

shell
curl -fsSL https://get.avenbay.com/install.sh | sudo sh
sudo aven host enroll --server https://app.avenbay.com --token <single-use-token>

2. Configure the worker service

The enrollment command exchanges the short-lived token for a host identity, writes the worker configuration with restricted permissions, and starts the service. It does not print the long-lived worker credential.

3. Start and verify

Run the worker as a dedicated, non-root Unix account with access only to the repositories it should manage. The host will appear as online after its WSS connection is accepted.

04

AGENT RUNTIMES

Codex & Claude Code adapters

An adapter translates Avenbay’s common session operations into the command-line behavior of a specific coding agent. The worker starts the selected executable inside its private tmux server, delivers tasks, and reports lifecycle state to the control plane.

CX

Codex

Start interactive Codex sessions, attach from the browser, send tasks, stop work, and resume an exited Codex session.

CC

Claude Code

Start interactive Claude Code sessions, attach from the browser, deliver tasks, and stop the managed process.

Adapters do not grant the control plane arbitrary shell execution. Workers accept typed operations against Avenbay session IDs and enforce the executable and filesystem policy locally.

05

SESSION LIFECYCLE

Work with sessions

A session belongs to one organization, host, project, and owner. Its process runs in the worker’s private tmux server, so closing the browser does not stop the agent.

ActionWhat it doesAvailability
Open terminalCreates a short-lived attachment grant and connects the browser to the managed tmux session.Running
Send taskQueues typed input through a tmux buffer and submits it without requiring an attached terminal.Running
StopStops the underlying managed session on its worker host.Running
ResumeStarts a new Codex session from an exited Codex session.Exited / Codex
DeletePermanently removes session history after the agent has exited or failed.Exited / Failed
06

AGENT COORDINATION

Manage work across sessions

Coordination tasks let one running agent session delegate a bounded piece of work to another running session in the same organization. Agents create and update tasks with the scoped aven CLI. The full avenbay command is also available. Operators monitor every handoff from the console’s Tasks page.

Prerequisites

  • Use a worker release that advertises the session_cli capability and includes the aven CLI.
  • Create new sessions after that worker connects. Existing sessions must be recreated to receive their scoped session environment.
  • Keep both the source and target sessions running. A session cannot send a coordination task to itself.

Delegate work from an agent session

Run these commands inside an Avenbay-managed terminal. First discover the other running sessions in your organization:

shell
aven session whoami
aven session peers

Choose a target session ID from peers, then create the handoff:

shell
aven task send \
  --to sess_target \
  --task "Review the authentication changes and report any regressions"

The command returns JSON containing the new ctask_… ID. Avenbay records the task, attempts to deliver a notification into the target session, and exposes it immediately in the Tasks dashboard.

Work the target inbox

The target agent receives the task instruction together with acknowledgement commands. It can also inspect its inbox explicitly:

shell
aven task inbox
aven task show ctask_123
aven task accept ctask_123
aven task progress ctask_123 --message "Tests are running"
aven task complete ctask_123 --message "Review complete; no regressions found"

For a large result, use --result-file PATH with progress, complete, or fail. Result files are limited to 120 KiB.

Follow up from the source session

shell
aven task status ctask_123
aven task wait ctask_123 --timeout 20m
aven task cancel ctask_123

wait polls until the task is completed, failed, or cancelled. Cancelling stops Avenbay coordination but does not guarantee that a target agent which already began work has stopped; interrupt that session manually when necessary.

Delegate a child task

A target session can delegate part of an accepted task to another running session and preserve the relationship:

shell
aven task send \
  --to sess_specialist \
  --task "Check the database migration for rollback safety" \
  --parent ctask_123

The parent must target the session creating the child. Delegation depth is limited to three levels to keep coordination bounded and understandable.

Use the Tasks dashboard

OVERVIEW

See workload health

Active, needs-attention, completed, and total metrics summarize organization-wide coordination. The dashboard refreshes every 15 seconds and supports manual refresh.

FIND

Filter and search

Filter all, active, completed, or failed work. Search by task content, ID, state, project, session, or agent runtime.

INSPECT

Trace every handoff

Select a task to inspect its instruction, source and target sessions, parent, depth, result or failure, and chronological activity events.

INTERVENE

Open or cancel

Open either running session’s terminal directly. Non-viewer users can cancel active coordination tasks after confirmation.

Task states

StateMeaning
PendingThe task is stored, but delivery into the target session was not confirmed.
SubmittedThe task notification was written and submitted to the target agent.
AcceptedThe target session acknowledged responsibility for the task.
CompletedThe target returned a result and finished the task.
FailedThe target reported why it could not complete the task.
CancelledThe source session or an authorized console user stopped coordination.
07

TRUST MODEL

Security model

BROWSERAvenbay console
HTTPS / WSS →
CONTROL PLANEAuth + routing
← outbound WSS
YOUR HOSTWorker + tmux

IDENTITY

Server-side tenancy

Every user and resource is scoped to one organization. Passwords use PBKDF2-SHA256; email, invitation, reset, enrollment, and worker tokens are stored as hashes.

NETWORK

No exposed host listener

The worker initiates outbound WSS. Only the HTTPS control plane is internet-facing; your host does not need an inbound firewall rule.

EXECUTION

Local enforcement

The worker permits configured executables and roots, accepts typed session operations, and isolates managed sessions on a dedicated tmux socket.

AUDIT

Privileged event history

Lifecycle and input operations create organization-scoped audit events. Terminal recording is disabled by default.

08

DIAGNOSTICS

Troubleshooting

Host stays offline after enrollment

Confirm the worker service has the configured host ID and worker token, can resolve and reach app.avenbay.com over HTTPS/WSS, and points to wss://app.avenbay.com/v1/worker/connect. Then inspect the worker service logs.

A deleted session returns 404

Deletion removes the session record. Refresh the session list and close any open detail or terminal view that still references the old session ID.

aven task says it must run inside a managed session

Create a new session on a worker that includes the session CLI capability, then run the command from that session’s terminal. The command intentionally refuses to use manually supplied user or worker credentials.

A coordination task remains pending

The task was stored but delivery to the target was not confirmed. Confirm the target session is still running, its worker is online, and the target terminal can receive typed operations. You can cancel the task and retry with another running session.

The Tasks page is empty

The dashboard shows coordination tasks created with aven task send, not ordinary input sent from a session card. Create at least two running sessions and delegate work from one managed terminal to the other.

READY TO CONNECT?

Bring your first host online.

Open Avenbay ↗