中文

Tokenman architecture

Tokenman is a runtime for native AI coding agents such as Claude Code and Codex, provided by model companies and run unmodified: it handles where they run, how they stay online, how people connect from any device, and how subscriptions are shared and metered. This is a conceptual map: the layers show responsibilities, not a deployment topology. All eight principles describe behavior live in production.

Open the visual blueprint · Security and isolation

Four layers: clients use the hub; the hub owns central data; nodes run sessions and dial out to the hub. Model requests cross the credential proxy to external providers.

Four layers

1 · Clients

Clients connect to the hub through an encrypted entry.

2 · Application · the hub

An optional LivePage studio uses the same native sessions and home relay: the agent reads and edits through its existing MCP connection, stores held versions, and publishes only after a version-specific confirmation. The hub has no additional publishing credential. Access defaults off and is restricted by principal.

Preview renewal is optional and independent of model turns: the native agent grants a bounded, exact-version read capability through LivePage MCP. The home relay keeps it out of the browser projection and exchanges it for short-lived embed tickets. LivePage rechecks membership, source and original authorization on renewal. Publishing credentials and confirmed writes remain with the native agent.

3 · Data

Nodes initiate an encrypted connection to the hub; they do not access the data layer directly.

4 · Infrastructure · nodes that run sessions

External services

Cross-cutting concerns

How requests flow

These paths describe the responsibilities behind live browser access, model requests, node state updates and release handover.

Chatting with an agent

  1. The browser opens the portal.
  2. The hub authenticates the person and finds their session.
  3. The hub relays the conversation to the node running it.
  4. Replies stream back through the hub to the browser.

An agent calls a model

  1. The agent on a node sends a model request to the credential proxy.
  2. The proxy authorizes it, chooses an eligible subscription from the pool and meters usage.
  3. The provider receives the request; its response returns through the proxy to the session.

A node stays connected

  1. The node agent initiates an encrypted outward connection to the hub.
  2. The hub delivers work and settings through that connection.
  3. The node pushes state changes to the hub; older nodes switch as they update.

A release ships

  1. A change passes automated checks and merges.
  2. The release process publishes a verified release and deploys the hub.
  3. Nodes verify and apply their releases. Connections are handed over in stages during deployment, and browser streams reconnect automatically.

Trust boundaries and data

For isolation, credential lifetimes, revocation and compromise boundaries, read Security and isolation. Repository credentials and external tool integrations have their own access boundaries; the model-key rule does not describe every secret a person may give an agent.

Design principles and why

Native agents, unmodified · live

Sessions run the official Claude Code and Codex CLIs directly and follow upstream updates, without wrapping them in a proprietary agent. Keeping the native agents intact lets people use the capabilities and workflows their model providers deliver, while Tokenman manages the runtime around them. Using a session describes the experience; there is no public deep-dive on upstream CLI updates yet.

Anytime, anywhere · live

Sessions stay on managed nodes and continue when a laptop closes. Browser, terminal and phone access let people return to the same running work from whichever device is available. Separating a session's lifetime from its client connection makes ongoing work independent of a person's device. Connecting to sessions describes access from each device.

One portal · live

Browser access converges on tokenman.io, with regional routing handled by the service and an accelerated entry for mainland China. This gives people one familiar path from sign-in to their sessions without choosing an entry point themselves. Existing access through WeChat and native clients remains available. Member quickstart describes the session journey.

Nodes dial out · live

A node initiates the connection to the hub so the service can reach its sessions without requiring an inbound application port on that node. This supports both managed environments and personal machines behind ordinary network boundaries. Self-host setup and Security and isolation describe the operating and trust model.

Push, not poll · live

Nodes push state when it changes, avoiding repeated reads of unchanged state and keeping the hub's view fresh. Older nodes switch as they update. This reduces unnecessary requests while making changes visible promptly. Node updates covers update operations; Service health explains the health information available to readers.

Keys stay central · live

Keeping model keys out of sessions limits what an agent or a compromised working environment can take. The proxy can enforce access, select subscriptions and revoke access centrally while the session uses a scoped credential. Security and isolation explains the boundary; Subscription accounts describes administration.

Uneventful deploys · live

Deployments hand connections over in stages, and browser streams reconnect automatically. This preserves continuity for ongoing work and reduces interruptions during routine releases. Install and deploy covers operation; Release verification explains how published releases are trusted.

Visible health · live

The public status page shows service health and incidents without requiring sign-in. Readable health information helps people distinguish a local connection problem from a service disruption. Service health explains the indicators and their limits, along with the additional details available after signing in.

Glossary

Blueprint v4 · Updated 2026-10-26. Status labels describe this version, not a delivery date.