Skip to content

Documentation ​

One file per area of the host. Each says what is true today and links the decision behind a choice rather than repeating its reasoning, and a reader finds an area by its file name.

The files are in three folders, one for each kind of reader.

server ​

For a person who runs the ahpd daemon: its commands, its flags and its configuration.

FileWhat it covers
GET-STARTED.mdInstall, configure, start, and connect VS Code
INSTALL.mdInstall, and run on Node, Bun or Deno
UPGRADE.mdUpgrade the daemon and its plugins, and the update check
RUN.mdStart, stop, restart, the files the daemon keeps, and served folders
CONFIGURE.mdahpd configure, config.json, and which setting wins
PLUGINS.mdInstall, update and configure plugins
CONNECT.mdConnect VS Code or ahpc
REMOTE.mdThe connection token, the network, the HTTP API and --remote
USERS.mdA token and a role for each person
VAULT.mdCredentials out of config.json
USAGE.mdWhat each pool has spent
PROXY.mdThe model proxy under /v1
REFERENCE.mdEvery command and flag, generated from the code

sdk ​

For a person who builds a host with @ahpd/sdk: what each subject is, as the code defines it.

FileWhat it covers
AHP.mdThe surface: every command, action and well-known key this host serves, with the row that says why
AGENT.mdWriting a backend: the Agent interface, and what a backend owes the host
BUILD-A-HOST.mdBuilding a host with @ahpd/sdk instead of running this one
HOST.mdThe host itself: what it announces, what it serves and every setting it reads
SESSIONS.mdWhat a session is: its backend, its settings, the directories it may touch and what it is charged to
CHATS.mdOne conversation inside a session: its turns, its parts and the chat URI
RESOURCES.mdResources: what a scheme is, the resource* methods and the grants each asks for
TOOLS.mdWhat tools a session's model is offered, and where each set of them comes from
TERMINALS.mdTerminals: where one runs, who opens one and its grants
AUTOMATIONS.mdAutomations: their triggers, the runs they make and the catalogue they live on
POLICY.mdPolicies: who may use which agent, model and computer, and what a refusal says
USAGE.mdUsage: the records this host writes and what a pool has been charged
USERS.mdThe user directory: the people, their roles and what their work may be charged to
AUTHENTICATION.mdProving who a client is: the door, the tokens, authenticate, the issuer and what is readable before signing in

plugins ​

For a person who writes a plugin, and one page for each plugin that ships in this repository.

FileWhat it covers
PLUGINS.mdWriting a plugin: the contract, what you may register, the manifest and how one is named
agent-acp.mdAn AHP backend over the Agent Client Protocol: any ACP server is one provider
agent-claude.mdClaude Code as a backend: a plugin for the daemon and an Agent for @ahpd/sdk
agent-cofold.mdAn AHP backend over the cofold agent runtime: every model it can reach is a model inside one provider
agent-pi.mdThe pi coding agent as a backend, embedded in process
bot.mdBots for the daemon: the bot: resource provider
BOTS.mdBots: the bot: scheme, the record a bot is, and the session it is talked to in
computer.mdDisposable Docker machines for the daemon: the computer: resource provider and its tools
COMPUTERS.md@ahpd/computer: making a machine, running a session inside it, and the profiles that decide what it is
CONTAINERS.mdA session inside a folder's dev container, with a host of its own running in there
push.mdExpo push notifications: the push: resource provider a device registers with
tunnel-devtunnel.mdForwards the bound port through a Microsoft Dev Tunnel so VS Code can reach the daemon from anywhere
webhook.mdWebhooks for the daemon: a URL that talks to a bot or fires an automation
WEBHOOKS.mdWebhooks: a URL that talks to a bot or fires an automation, with a secret per endpoint

What the repository is, and how to start it, is the root README. Where the reference lives and which revisions were last read is REFERENCE.md. The reasoning behind a choice these files link is under .project/decisions/.