ข้ามไปที่เนื้อหา
Docs

คู่มือนี้มีเฉพาะภาษาอังกฤษ

Architecture

The parts of Vixi, what each one does, and the path of one tool call.

The layers

Your apps talk to a small server. The server starts a private workspace for each person. The agent runs in that workspace, and its model calls go through a separate model proxy that holds the model keys.

Vixi layersApps connect to the edge and control services. Control manages the workspaces and uses Postgres and Redis. Each workspace opens a tunnel to the edge, and calls the model proxy and the file service. Browser and developer tools are mounted read-only.Web app@vixi/uiDesktopTauri 2PhoneExpo, React NativeChrome extensionManifest V3Chat, tools and devicesAccounts and settingsEdgeWebSocket and HTTP gatewayControlAccounts, vault, workspacesTunnelStart and sleepDataPostgresRedisOne workspace per personHermes Agent, Vixi patches and pluginsSQLite, files and memory on a private volumeModel proxyLiteLLMModel keysFile serviceDocuments andmedia, optionalTool volumesBrowser, devtoolsRead-only

Apps

  • Web and desktop share the @vixi/ui interface. The desktop app for macOS, Windows and Linux is built with Tauri 2.
  • Phone is an Expo and React Native app. A phone shows chats and approvals. It never runs tools for the agent.
  • Chrome extension is a Manifest V3 extension. It pairs as its own device and lets Vixi work in your open tabs.
  • Computer connector is vixi-node, a Python program that gives Vixi access to the folders and tools you allow. The desktop app includes it.

Devices and computer use explains pairing and limits.

Server

  • Edge keeps the live connections. Apps and computers connect to /v1/connect. Each workspace opens its own outbound tunnel to /v1/tunnel. Requests for a person's workspace use /u and travel through that tunnel.
  • Control handles accounts, devices, connections and the encrypted vault. It also starts workspaces, puts them to sleep and wakes them. It updates its database schema when it starts.
  • Postgres stores control's data. Redis carries messages between services and tracks which devices are online.

Control manages workspace containers through a Docker policy proxy. The proxy accepts a short list of calls, such as starting a correctly named and labelled workspace container, and refuses the rest.

Your workspace

Each person gets one container and one private volume. The container runs upstream Hermes Agent v0.23.0 at a pinned commit. Vixi adds patches and two plugins, hermes-cloud and vixi-memory. Each patch must match the upstream code exactly, or the image build fails.

  • s6-overlay starts and supervises the processes in the container.
  • The agent runs as a regular user, not root. Its API listens only inside the container.
  • SQLite stores chats. The image builds its own SQLite 3.53.4, which includes a fix for a write-ahead log bug that could corrupt data.
  • Memory is a tree of Markdown files on the same private volume.

Shared services

  • Model proxy runs LiteLLM. It holds the model keys, so they are not stored in workspaces.
  • File service (hermes-files) reads, converts and creates documents and media. A workspace sends it the files for one job and gets the result back.
  • Browser volume (hermes-browser) contains headless Chrome, Node.js and browser automation tools.
  • Developer tools volume (hermes-devtools) contains tools such as ripgrep, GitHub CLI, uv, pnpm and Zig.

Workspaces mount the browser and developer tools as read-only volumes. This keeps the workspace image smaller, and a workspace can't change the shared tools.

ServiceHoldsNever sees
ControlPostgres, signing private key, encrypted OAuth refresh tokens, vault ciphertextRaw Docker socket (goes through Docker policy proxy)
EdgeJWT public key only (verifies tokens), Redis pub/subSigning private key, Postgres, LLM provider keys, OAuth tokens
Model proxyEncrypted LLM provider API keys (managed by control)User files, OAuth tokens, Docker socket
Docker policy proxyDocker socket; enforces container policy and per-workspace nftables rulesUser chats, OAuth tokens, LLM keys
User workspaceIts own home volume and short-lived scoped proxy tokenLLM provider keys, OAuth refresh tokens, Docker socket, other users' containers

One tool call, step by step

In this example, you ask Vixi from your phone to run the tests on your laptop.

One tool callThe phone sends a message through the edge to the workspace. The workspace calls the model proxy, which returns a tool call. The workspace checks whether approval is needed. The edge sends the command to the laptop, which applies its own limits and returns the result. The workspace sends the reply to the phone.PhoneEdgeWorkspaceModel proxyLaptop1. Message2. Tunnel3. Model call4. Tool call5. CheckApproval needed?6. Command7. Run it8. Result9. Result10. Reply
  1. Your message goes through the edge and the workspace's tunnel to the agent.
  2. The agent calls the model. The model asks to run a command on the laptop.
  3. The workspace checks your approval mode. If it needs to ask, it shows a card on your devices.
  4. The edge sends the allowed command to the laptop. The connector applies its own folder limits, and its local approval rule if you turned one on.
  5. The result returns to the agent, which can call the model again or reply.

Tech stack

PartBuilt with
Web interfaceReact and TypeScript
Desktop appTauri 2 and Rust
Phone appExpo 58 and React Native 0.88
Browser extensionTypeScript, Chrome Manifest V3
ControlTypeScript, Fastify 5, Drizzle ORM, Postgres, Redis
EdgeTypeScript, ws, Redis
WorkspacePython 3.14, Hermes Agent v0.23.0, SQLite 3.53.4, s6-overlay
Computer connectorPython 3.11 or later
File servicePython 3.12
Model proxyLiteLLM