YA Claw Deployment
Use this skill when deploying, configuring, operating, or troubleshooting YA Claw.
Recommended Deployment Shape
Use the Docker workspace provider for production-like deployments. Choose the exact shape from the workspace provider matrix.
flowchart LR
CLIENT["Web/API Client"] --> SVC["YA Claw Service"]
SVC --> DB[("SQLite or PostgreSQL")]
SVC --> DATA["Persistent Data Dir"]
SVC --> PROVIDER["WorkspaceProvider"]
PROVIDER --> LOCAL["Local shell"]
PROVIDER --> DOCKER["Docker shell"]
DOCKER --> WSC["Reusable Workspace Container"]
The Docker shell shapes give agents an isolated workspace container with Python, Node.js, GitHub CLI (gh), lark-cli, and bundled workspace skills.
Start Here
Choose the deployment path:
- Workspace provider matrix: read
references/workspace-provider/overview.md
- Service Docker + Docker shell: read
references/docker.md and references/workspace-provider/service-docker-docker-shell.md
- Service local + Docker shell: read
references/systemd.md and references/workspace-provider/service-local-docker-shell.md
- Service local + local shell: read
references/workspace-provider/service-local-local-shell.md
- SQLite or PostgreSQL storage: read
references/database.md
- Profile seeding, subscription-backed Codex profiles, shell review policy, and shell sandbox policy: read
references/profiles.md
- Third-party capability plugin installation and manifest deployment: read
references/plugins.md
- Bridge deployment: read
references/bridge/overview.md, references/bridge/github.md, and references/bridge/lark.md
- Schedules and heartbeat: read
references/schedules-heartbeat.md
- Session agency: read
references/agency.md
- Session/run pruning: read
references/operations.md#session-and-run-pruning
- Health checks, backup, restore, upgrades, and troubleshooting: read
references/operations.md
Required Baseline
Every deployment needs:
YA_CLAW_API_TOKEN
- persistent
YA_CLAW_DATA_DIR
- persistent
YA_CLAW_WORKSPACE_DIR
- selected workspace backend:
local or docker
- Docker CLI on
PATH plus Docker Engine API access for the YA Claw service process when backend is docker; the official service image bundles the CLI, but custom images and host installs must provide it
YA_CLAW_WORKSPACE_PROVIDER_DOCKER_HOST_WORKSPACE_DIR when the service runs in Docker and uses Docker shell execution
- model/provider credentials available in the YA Claw service process
- seeded or pre-created execution profile rows
- for capability plugins, trusted distributions installed in the service Python
environment plus an administrator-controlled manifest path
Default Runtime Values
- HTTP port:
9042
- runtime data dir:
~/.ya-claw/data
- SQLite path:
~/.ya-claw/ya_claw.sqlite3
- run store:
~/.ya-claw/data/run-store
- workspace dir:
~/.ya-claw/data/workspace
- session agency: disabled by default; when enabled, inactivity scan runs after 600 seconds with 1800-second cooldown
- session prune: disabled by default; safe disk-only mode keeps latest 10 runs per session when enabled
- default profile:
default
- profile shell review threshold default:
extra_high
- local shell sandbox default: enabled, profile
workspace_write, backend auto, network full, env allowlist *, raw host shell escalation requires explicit policy allowance
- Docker workspace image:
ghcr.io/wh1isper/ya-claw-workspace:latest
- Docker service host bind:
0.0.0.0
- service build metadata:
YA_CLAW_SERVICE_VERSION, YA_CLAW_SERVICE_COMMIT, YA_CLAW_SERVICE_BUILD, and YA_CLAW_SERVICE_IMAGE, exposed through /api/v1/claw/info and the web Overview page
Deployment Checklist
- Generate a long random
YA_CLAW_API_TOKEN.
- Choose SQLite or PostgreSQL.
- Mount or create persistent data and workspace directories.
- Choose one workspace provider shape.
- Grant the service Docker access when the shape uses Docker shell execution.
- Configure profile seed when packaged profiles should be loaded at startup.
- If using capability plugins, install them into the service environment, configure
YA_CLAW_CAPABILITY_PLUGIN_MANIFEST, and restart for every package or manifest change.
- Start the service with
ya-claw start.
- Verify
/healthz.
- Verify authenticated API or web shell access.
- Start a test session and confirm model credentials, plugin grants, workspace tools, and profile behavior.
- Enable session agency with
YA_CLAW_AGENCY_ENABLED=true for deployments that want proactive agency rollout.
Reference Routing
| Topic |
File |
Read when |
| Environment variables |
references/environment.md |
You need exact YA_CLAW_* settings, defaults, or production env shape |
| Docker deployment |
references/docker.md |
You deploy the YA Claw server as a Docker service |
| Workspace provider matrix |
references/workspace-provider/overview.md |
You choose between service local + Docker shell, service Docker + Docker shell, and service local + local shell |
| Docker workspace provider |
references/workspace-provider/docker.md |
You configure Docker Engine access, path mapping, workspace mounts, and container reuse |
| Host service |
references/systemd.md |
You run YA Claw as a supervised host service |
| Database |
references/database.md |
You choose SQLite or PostgreSQL, migrate, backup, or restore storage |
| Profiles |
references/profiles.md |
You seed profiles, manage execution profile configuration, tune shell review, or configure shell sandbox policy |
| Capability plugins |
references/plugins.md |
You install trusted plugin packages, deploy the manifest, or build a derived service image |
| Bridge overview |
references/bridge/overview.md |
You configure bridge dispatch, adapter enablement, and event-to-run routing |
| GitHub bridge |
references/bridge/github.md |
You connect an ordinary GitHub account through outbound notification polling |
| Lark bridge |
references/bridge/lark.md |
You connect Lark/Feishu events to YA Claw |
| Bridge operations |
references/bridge/operations.md |
You verify embedded bridge startup, GitHub/Lark ingress, dedupe, profiles, and workspace replies |
| Schedules and heartbeat |
references/schedules-heartbeat.md |
You configure cron schedules, heartbeat guidance, timer dispatchers, and timer operations |
| Session agency |
references/agency.md |
You configure proactive agency, agency signals, paired agency sessions, and agency operations |
| Operations |
references/operations.md |
You need health checks, logs, pruning, upgrades, backup, restore, or troubleshooting |
When editing this skill inside the repository, keep scripts/build-skill-zips.py aligned so release artifacts include the canonical skill contents.
1---2name: ya-claw-deploy3description: Deploy, configure, operate, and troubleshoot YA Claw, the single-node runtime web service in ya-mono. Use for production and self-hosted Docker deployment, docker-compose, systemd services, SQLite or PostgreSQL storage, Docker workspace provider configuration, profile seeding, execution coordinator setup, health checks, reverse proxy setup, GitHub or Lark bridge deployment, upgrades, backup, restore, and production operations for packages/ya-claw.4---56# YA Claw Deployment78Use this skill when deploying, configuring, operating, or troubleshooting YA Claw.910## Recommended Deployment Shape1112Use the Docker workspace provider for production-like deployments. Choose the exact shape from the workspace provider matrix.1314```mermaid15flowchart LR16 CLIENT["Web/API Client"] --> SVC["YA Claw Service"]17 SVC --> DB[("SQLite or PostgreSQL")]18 SVC --> DATA["Persistent Data Dir"]19 SVC --> PROVIDER["WorkspaceProvider"]20 PROVIDER --> LOCAL["Local shell"]21 PROVIDER --> DOCKER["Docker shell"]22 DOCKER --> WSC["Reusable Workspace Container"]23```2425The Docker shell shapes give agents an isolated workspace container with Python, Node.js, GitHub CLI (`gh`), `lark-cli`, and bundled workspace skills.2627## Start Here2829Choose the deployment path:3031- Workspace provider matrix: read [`references/workspace-provider/overview.md`](references/workspace-provider/overview.md)32- Service Docker + Docker shell: read [`references/docker.md`](references/docker.md) and [`references/workspace-provider/service-docker-docker-shell.md`](references/workspace-provider/service-docker-docker-shell.md)33- Service local + Docker shell: read [`references/systemd.md`](references/systemd.md) and [`references/workspace-provider/service-local-docker-shell.md`](references/workspace-provider/service-local-docker-shell.md)34- Service local + local shell: read [`references/workspace-provider/service-local-local-shell.md`](references/workspace-provider/service-local-local-shell.md)35- SQLite or PostgreSQL storage: read [`references/database.md`](references/database.md)36- Profile seeding, subscription-backed Codex profiles, shell review policy, and shell sandbox policy: read [`references/profiles.md`](references/profiles.md)37- Third-party capability plugin installation and manifest deployment: read [`references/plugins.md`](references/plugins.md)38- Bridge deployment: read [`references/bridge/overview.md`](references/bridge/overview.md), [`references/bridge/github.md`](references/bridge/github.md), and [`references/bridge/lark.md`](references/bridge/lark.md)39- Schedules and heartbeat: read [`references/schedules-heartbeat.md`](references/schedules-heartbeat.md)40- Session agency: read [`references/agency.md`](references/agency.md)41- Session/run pruning: read [`references/operations.md#session-and-run-pruning`](references/operations.md#session-and-run-pruning)42- Health checks, backup, restore, upgrades, and troubleshooting: read [`references/operations.md`](references/operations.md)4344## Required Baseline4546Every deployment needs:4748- `YA_CLAW_API_TOKEN`49- persistent `YA_CLAW_DATA_DIR`50- persistent `YA_CLAW_WORKSPACE_DIR`51- selected workspace backend: `local` or `docker`52- Docker CLI on `PATH` plus Docker Engine API access for the YA Claw service process when backend is `docker`; the official service image bundles the CLI, but custom images and host installs must provide it53- `YA_CLAW_WORKSPACE_PROVIDER_DOCKER_HOST_WORKSPACE_DIR` when the service runs in Docker and uses Docker shell execution54- model/provider credentials available in the YA Claw service process55- seeded or pre-created execution profile rows56- for capability plugins, trusted distributions installed in the service Python57 environment plus an administrator-controlled manifest path5859## Default Runtime Values6061- HTTP port: `9042`62- runtime data dir: `~/.ya-claw/data`63- SQLite path: `~/.ya-claw/ya_claw.sqlite3`64- run store: `~/.ya-claw/data/run-store`65- workspace dir: `~/.ya-claw/data/workspace`66- session agency: disabled by default; when enabled, inactivity scan runs after 600 seconds with 1800-second cooldown67- session prune: disabled by default; safe disk-only mode keeps latest 10 runs per session when enabled68- default profile: `default`69- profile shell review threshold default: `extra_high`70- local shell sandbox default: enabled, profile `workspace_write`, backend `auto`, network `full`, env allowlist `*`, raw host shell escalation requires explicit policy allowance71- Docker workspace image: `ghcr.io/wh1isper/ya-claw-workspace:latest`72- Docker service host bind: `0.0.0.0`73- service build metadata: `YA_CLAW_SERVICE_VERSION`, `YA_CLAW_SERVICE_COMMIT`, `YA_CLAW_SERVICE_BUILD`, and `YA_CLAW_SERVICE_IMAGE`, exposed through `/api/v1/claw/info` and the web Overview page7475## Deployment Checklist767701. Generate a long random `YA_CLAW_API_TOKEN`.7802. Choose SQLite or PostgreSQL.7903. Mount or create persistent data and workspace directories.8004. Choose one workspace provider shape.8105. Grant the service Docker access when the shape uses Docker shell execution.8206. Configure profile seed when packaged profiles should be loaded at startup.8307. If using capability plugins, install them into the service environment, configure84 `YA_CLAW_CAPABILITY_PLUGIN_MANIFEST`, and restart for every package or manifest change.8508. Start the service with `ya-claw start`.8609. Verify `/healthz`.8710. Verify authenticated API or web shell access.8811. Start a test session and confirm model credentials, plugin grants, workspace tools, and profile behavior.8912. Enable session agency with `YA_CLAW_AGENCY_ENABLED=true` for deployments that want proactive agency rollout.9091## Reference Routing9293| Topic | File | Read when |94| ------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |95| Environment variables | [`references/environment.md`](references/environment.md) | You need exact `YA_CLAW_*` settings, defaults, or production env shape |96| Docker deployment | [`references/docker.md`](references/docker.md) | You deploy the YA Claw server as a Docker service |97| Workspace provider matrix | [`references/workspace-provider/overview.md`](references/workspace-provider/overview.md) | You choose between service local + Docker shell, service Docker + Docker shell, and service local + local shell |98| Docker workspace provider | [`references/workspace-provider/docker.md`](references/workspace-provider/docker.md) | You configure Docker Engine access, path mapping, workspace mounts, and container reuse |99| Host service | [`references/systemd.md`](references/systemd.md) | You run YA Claw as a supervised host service |100| Database | [`references/database.md`](references/database.md) | You choose SQLite or PostgreSQL, migrate, backup, or restore storage |101| Profiles | [`references/profiles.md`](references/profiles.md) | You seed profiles, manage execution profile configuration, tune shell review, or configure shell sandbox policy |102| Capability plugins | [`references/plugins.md`](references/plugins.md) | You install trusted plugin packages, deploy the manifest, or build a derived service image |103| Bridge overview | [`references/bridge/overview.md`](references/bridge/overview.md) | You configure bridge dispatch, adapter enablement, and event-to-run routing |104| GitHub bridge | [`references/bridge/github.md`](references/bridge/github.md) | You connect an ordinary GitHub account through outbound notification polling |105| Lark bridge | [`references/bridge/lark.md`](references/bridge/lark.md) | You connect Lark/Feishu events to YA Claw |106| Bridge operations | [`references/bridge/operations.md`](references/bridge/operations.md) | You verify embedded bridge startup, GitHub/Lark ingress, dedupe, profiles, and workspace replies |107| Schedules and heartbeat | [`references/schedules-heartbeat.md`](references/schedules-heartbeat.md) | You configure cron schedules, heartbeat guidance, timer dispatchers, and timer operations |108| Session agency | [`references/agency.md`](references/agency.md) | You configure proactive agency, agency signals, paired agency sessions, and agency operations |109| Operations | [`references/operations.md`](references/operations.md) | You need health checks, logs, pruning, upgrades, backup, restore, or troubleshooting |110111When editing this skill inside the repository, keep `scripts/build-skill-zips.py` aligned so release artifacts include the canonical skill contents.