Setup
This page walks you through a fresh Yak install on one dedicated server. One Ansible playbook provisions the whole host. Use it once to install, then again for every update.
Moving from the previous version? Read Upgrading to threads instead.
What You End Up With
Section titled “What You End Up With”Every part below runs on the one server. Operations describes each component, its service name, ports and logs.
| Component | What it is |
|---|---|
| Yak container | Docker container yak: the dashboard, queue workers, the scheduler, the thread drivers, the credential socket and Reverb (websockets). |
| MariaDB | Docker container yak-mariadb: the application database. |
| Redis | Docker container yak-redis: every queue and the broker streams. |
| telemetryd | Docker container yak-telemetryd: 30 days of metrics, traces and logs for the System page. |
| Caddy | Host service: TLS, and the reverse proxy to the container. Routes the wildcard preview hosts when DNS-01 is configured. |
| Incus + ZFS | Host service: one system container (sandbox) per thread, each with its own Docker daemon, network and filesystem. |
yak-broker | Host service (Go): starts and supervises one runner per thread in its sandbox, and runs the auth proxy that keeps real Claude credentials out of sandboxes. |
| SSH jump host | Host services yak-jump-sshd, yak-wake and yak-termbridge: yak ssh and the browser terminal, on port 2222. |
You also get a dashboard at https://yak.example.com behind Google sign-in, and webhook endpoints for each channel you enable.
Prerequisites
Section titled “Prerequisites”| Requirement | Notes |
|---|---|
| Server | Dedicated machine, 32GB+ RAM, 500GB+ disk, x86-64 (the playbook builds Linux amd64 binaries). Hetzner AX-series, bare metal or a VM. Debian 12+ or Ubuntu 24.04. A public IP for inbound webhooks. SSH access as root or a user with passwordless sudo. |
| Domain | A DNS name for the dashboard (yak_domain), plus a wildcard record for previews. See DNS and firewall. |
| Claude | At least one Claude account for Yak to run on: a setup token (claude setup-token) or an Anthropic API key. You add accounts in the dashboard after the install. See Claude accounts. |
| Anthropic API key | Also required in the vault (anthropic_api_key). Yak uses it for its own small helper calls, such as classifying a request. |
| GitHub | An organization. The playbook walks you through creating a GitHub App. Yak clones over HTTPS with the App’s installation token, so no SSH keys are needed. |
| Google OAuth | A Google Cloud project with OAuth credentials, for dashboard sign-in. |
| Ansible | 2.15+ on the machine you run the playbook from (pip install ansible), with the community.general, community.docker and ansible.posix collections. |
| Go | 1.26+ on the machine you run the playbook from. The yak-broker and yak-ssh roles run go build there and copy the binaries to the server. |
| Node.js and npm | On the same machine. The incus role runs npm install and npm run build for the in-sandbox yak-browser tool whenever it builds the sandbox base image (the first run, and after yak_sandbox_base_version changes). |
Optional Per Channel
Section titled “Optional Per Channel”Only configure the channels you use. Everything except GitHub (for pushing branches and opening PRs) is optional.
| Channel | What you need |
|---|---|
| Slack | Slack app with bot token plus signing secret. |
| Linear | OAuth application (client id + secret + webhook signing secret). Authorize at /settings/linear. Requires workspace admin approval. |
| Sentry | Auth token plus webhook secret. An issue alert rule that notifies the integration. |
| Postmark server with an inbound stream (MX record on the inbound domain) and a verified sending domain. | |
| Drone CI | API token. Yak polls the Drone API — no webhook needed. |
| GitHub Actions | Included with the GitHub App — no additional setup. |
See the Channels page for the full configuration of each channel.
Optional: voiceover
Section titled “Optional: voiceover”Walkthrough videos render with captions by default. Set ELEVENLABS_API_KEY to add narration: before each render, Yak turns the script’s intro, each shot’s say line, and the outro into MP3s (ElevenLabs eleven_multilingual_v2) and mixes them into the cut. ELEVENLABS_VOICE_ID picks the voice and defaults to UgBBYS2sOqTuMpoF3BR0.
Expect roughly 1,000–1,300 characters per walkthrough, billed at one credit per character. The health page’s Voiceover row shows Off (no ELEVENLABS_API_KEY), the number of lines generated in the last 24 hours, or the last failure. The cost dashboard’s video panel sums the characters sent.
Voiceover is best-effort: with no key, or when the API errors, the walkthrough still renders captions-only and Yak still opens the PR.
To create the key, go to Developers → API Keys in the ElevenLabs dashboard and create a restricted key. Yak calls exactly one endpoint, POST /v1/text-to-speech/{voice_id}, so the key needs a single permission:
| Setting | Value |
|---|---|
| Text to Speech | Access |
| Everything else | No Access |
Leave Voices and Models at No Access too — the voice id comes from ELEVENLABS_VOICE_ID and the model is hardcoded, so neither is ever looked up over the API. Setting a per-credit refresh period is worth doing as a spend cap; at ~1,000–1,300 characters per walkthrough there is plenty of headroom under a modest monthly limit.
Then fill in elevenlabs_api_key (and optionally elevenlabs_voice_id) in the vault.
DNS and Firewall
Section titled “DNS and Firewall”Create these DNS records before you provision, so Caddy can get certificates:
| Record | Points at | Used for |
|---|---|---|
yak.example.com (A) | The server | Dashboard, webhooks, Reverb websockets, yak CLI. |
*.yak.example.com (A or CNAME) | The server | Previews: t-<random>.yak.example.com for thread previews and one host per branch deployment. Needs the DNS-01 setup in Previews. |
The playbook configures UFW with these inbound ports:
| Port | Purpose |
|---|---|
| 22 | SSH for Ansible and operators (ufw_allowed_ports). |
| 80 | HTTP, for certificate issuance and the redirect to HTTPS. |
| 443 | HTTPS: dashboard, webhooks, previews and Reverb. |
| 2222 | The SSH jump host for yak ssh (yak_ssh_jump_port, opened by the yak-ssh role). |
Everything else listens on loopback or on the sandbox bridge only: the container on 127.0.0.1:8080, Redis on 127.0.0.1:6379, the terminal bridge on 127.0.0.1:8090 and the auth proxy on 10.100.0.1:8787. Do not publish them.
Clients connect to the jump host at yak_domain by default. If you put a proxy in front of the dashboard record that only passes HTTP (for example a proxied Cloudflare record), port 2222 will not get through. Point a second, DNS-only name at the server and set yak_ssh_jump_host in the vault to it.
Install
Section titled “Install”You run steps 1 to 5 on your own machine. Ansible connects to the server over SSH and provisions everything. First sign-in happens in your browser.
1. Install the tools
Section titled “1. Install the tools”pip install ansible # or: brew install ansibleansible --version # 2.15 or newergo version # 1.26 or newernode --version2. Clone Yak
Section titled “2. Clone Yak”git clone https://github.com/geocodio/yak.gitcd yak3. Write the vault
Section titled “3. Write the vault”cp ansible/vault/secrets.example.yml ansible/vault/secrets.ymlansible-vault encrypt ansible/vault/secrets.ymlansible-vault edit ansible/vault/secrets.ymlTo skip typing the vault password on every run, save it to ansible/vault/.vault_pass. The file is gitignored and ansible.cfg reads it.
The vault file holds every secret and setting. The playbook stops before it changes anything if a required variable is missing or malformed.
Required variables
Section titled “Required variables”| Variable | What it is | How to get it |
|---|---|---|
yak_domain | Dashboard hostname, for example yak.example.com. | Your DNS name. |
github_org | Your GitHub organization. | Its login. |
google_oauth_client_id, google_oauth_client_secret | Google sign-in. | Google OAuth below. |
google_oauth_allowed_domains | Comma-separated email domains that may sign in. | For example example.com. |
anthropic_api_key | Key for Yak’s helper calls. | console.anthropic.com/settings/keys, starts with sk-ant-. |
mariadb_root_password, mariadb_password | Database passwords. | openssl rand -hex 24 for each. MariaDB reads them only on its first start with an empty data directory, so choose them once. |
redis_password | Redis requirepass. | openssl rand -hex 32 |
telemetryd_ingest_token, telemetryd_query_token | Tokens between the app and telemetryd. | openssl rand -hex 32 for each. |
yak_session_store_key | Encrypts stored Claude session files. Must be a 32-byte key in base64 (43 characters then =), or the playbook refuses to run. | openssl rand -base64 32. Keep it in the vault and never change it: see Session store. |
reverb_app_id, reverb_app_key, reverb_app_secret | Credentials for the websocket server. Any random strings. The key is public (the browser uses it), the secret is not. | openssl rand -hex 8, openssl rand -hex 16, openssl rand -hex 32. |
yak_ssh_internal_token | Shared secret between the app and the SSH host services. | openssl rand -hex 32 |
yak_app_key (Laravel’s APP_KEY) is optional. Leave it blank and the playbook generates one, saves it to /etc/yak/app_key on the server and reuses it on later runs. It encrypts database values, so never rotate it.
The GitHub App variables (github_app_id, github_app_private_key, github_installation_id, github_webhook_secret) start blank. On the first run the github-app role prints the manifest steps for creating the App. Fill in the result and run the playbook again. github_app_client_id and github_app_client_secret are optional and let people link GitHub for the co-owner gate.
Optional variables
Section titled “Optional variables”| Variable | Effect |
|---|---|
slack_*, linear_*, sentry_*, email_*, postmark_api_key, drone_* | One group per channel. Leave a channel’s variables blank to disable it. See Where to get credentials and Channels. |
sentry_laravel_dsn, sentry_traces_sample_rate | Sends Yak’s own errors to a Sentry project, separate from the Sentry channel. Blank means off. The sample rate defaults to 0, errors only. Each image reports its commit as the release. |
sentry_frontend_dsn | Sends JavaScript errors from the dashboard to a Sentry project. Blank means off. Errors only, no tracing or session replay, and query strings are stripped from URLs. The release and environment match the backend’s. For readable stack traces, build the image with SENTRY_AUTH_TOKEN (as a BuildKit secret), SENTRY_ORG and SENTRY_PROJECT; source maps are uploaded and then deleted from the image. |
slack_alert_channel | Channel ID that receives health alerts (the container reads it as YAK_SLACK_ALERT_CHANNEL). Invite the bot first. |
elevenlabs_api_key, elevenlabs_voice_id | Narration for walkthrough videos. Blank means captions only. |
github_app_bot_login | Pins Yak’s bot login, for example my-app[bot], so Yak does not depend on asking GitHub for it. The container reads it as GITHUB_APP_BOT_LOGIN. |
github_personal_access_token | Gives Claude a GitHub MCP server. Needs a personal access token, not the App key. |
caddy_dns_provider_api_token | Enables wildcard TLS for previews. See Previews. |
yak_ssh_jump_host, yak_ssh_host | Hostnames yak ssh and Settings show for the jump host. Both default to yak_domain. |
agent_extra_env, docker_registries | Tokens forwarded into sandboxes, and private registry logins. See below. |
yak_extra_env | Any other Yak setting, as a map of environment variables. See Other settings. |
Other settings
Section titled “Other settings”Every setting in Operations is an environment variable. To change one, put it in yak_extra_env in the vault. The playbook writes it into the container’s environment:
yak_extra_env: YAK_THREADS_AWAKE_CAP: "12" YAK_DAILY_BUDGET_USD: "100"These settings have no default and need a value if you use the feature:
- Admins of the shared Yak Claude accounts:
YAK_SYSTEM_ACCOUNT_ADMIN_IDS, a comma-separated list of user ids. Optional: the first person to sign in is made an admin without it, and setting it turns that off. See First sign-in. - Push notifications:
VAPID_SUBJECT(for examplemailto:ops@example.com),VAPID_PUBLIC_KEYandVAPID_PRIVATE_KEY. Generate the key pair once after the first deploy withdocker exec -u www-data yak php artisan webpush:vapid --show, then add all three. See Notifications. - Datasets: the
YAK_DATASETS_S3_*variables. See Datasets.
Agent Environment Variables
Section titled “Agent Environment Variables”Repos that need tokens at build time (e.g. private npm registries) can have those tokens forwarded to the agent process. Add them to agent_extra_env in your vault:
agent_extra_env: NODE_AUTH_TOKEN: "ghp_..."This does two things automatically:
- Sets
NODE_AUTH_TOKEN=ghp_...as a container env var (available tonpm install) - Sets
YAK_AGENT_PASSTHROUGH_ENV=NODE_AUTH_TOKENso the sandboxed agent process receives it
Only vars listed here are forwarded — app secrets like DB_PASSWORD and APP_KEY are never exposed to the agent.
Private Docker Registries
Section titled “Private Docker Registries”Repos that pull private Docker images (e.g. bases shared across services, internal tooling) can authenticate from inside every sandbox without rebuilding locally. Add credentials to docker_registries in your vault:
docker_registries: ghcr.io: username: "your-github-username" password: "ghp_..." # PAT with `read:packages` scope registry.example.com: username: "deploy" password: "..."Ansible renders these into ~/.docker/config.json on the host, bind-mounts them into the Yak container, and the sandbox manager pushes the file to /home/yak/.docker/config.json in each new sandbox. docker pull and docker-compose up pick it up automatically.
The google_oauth_allowed_domains field is required. Login is rejected for any email whose domain is not in the list.
Where to get credentials
Section titled “Where to get credentials”Google OAuth (required)
Section titled “Google OAuth (required)”- Go to console.cloud.google.com and create a new project (or select an existing one)
- Go to APIs & Services → OAuth consent screen
- Set user type to Internal (restricts login to your Google Workspace org — no app review needed)
- Fill in the app name (e.g. “Yak”) and your support email, then save
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Application type: Web application
- Add an authorized redirect URI:
https://{your-domain}/auth/google/callback - Copy the Client ID into
google_oauth_client_id - Copy the Client Secret into
google_oauth_client_secret - Set
google_oauth_allowed_domainsto your domain (e.g.yourcompany.com)
GitHub
Section titled “GitHub”No manual setup needed before provisioning. Leave the github_app_id fields blank and set github_org to your GitHub organization name. On first run, the playbook prints step-by-step instructions to create the GitHub App via the manifest flow — you fill in the resulting credentials and re-run. Once the app exists, open its settings and under Display information upload public/bot-avatar.png as the logo, with badge background color #f3efe6.
Slack (optional)
Section titled “Slack (optional)”- Go to api.slack.com/apps and click Create New App → From scratch
- Name it (e.g. “Yak”) and select your workspace
- Go to OAuth & Permissions and add these bot token scopes:
chat:writeapp_mentions:readchannels:historyusers:read— required. Yak looks up every sender and ignores guests and Slack Connect users from other organizations. Without this scope every lookup fails and Yak ignores everyoneim:history— lets Yak read direct messages, so people can DM Yak a task instead of mentioning it in a channelreactions:write— lets Yak react 👀 / 🚧 / ✅ / ❌ on your mention for glanceable status
- Click Install to Workspace and authorize
- Under Basic Information → Display Information, upload
public/bot-avatar.pngas the app icon, set the short description to “AI coding agent — mention me with a task, get a pull request”, and the background color to#2f3a42(Yak ink, dark enough for Slack’s white wordmark) - Copy the Bot User OAuth Token (
xoxb-...) intoslack_bot_token - Go to Basic Information and copy the Signing Secret into
slack_signing_secret - Go to App Home, enable the Home Tab — this powers the welcome DM Yak sends the first time a user opens Yak in the sidebar. Under Show Tabs, also enable the Messages Tab and tick Allow users to send Slash commands and messages from the messages tab, so people can DM Yak
- Go to Interactivity & Shortcuts, enable interactivity, and set the request URL to
https://{your-domain}/webhooks/slack/interactive— this powers the click-to-answer buttons on clarification messages - Go to Event Subscriptions, enable events, and set the request URL to
https://{your-domain}/webhooks/slack - Subscribe to bot events:
app_mention,message.channels,message.im, andapp_home_opened
Set slack_workspace_url (for example https://acme.slack.com) in your vault so the dashboard can deep-link tasks back to their originating Slack thread.
See Channels → Slack for usage and gotchas.
Linear (optional)
Section titled “Linear (optional)”Yak installs as a Linear Agent — a first-class workspace participant that appears in the assignee picker without consuming a seat.
- Go to linear.app/settings/api/applications
→ New application.
- Name:
Yak - Description:
AI coding agent -- assign me an issue and I'll open a pull request(this appears in the assignee picker and the install consent screen, so keep it plain) - Icon: upload
public/bot-avatar.png - Callback URL:
https://{your-domain}/auth/linear/callback - Enable Webhooks, set the URL to
https://{your-domain}/webhooks/linear, and under App events tick Agent session events. - Copy the app’s webhook signing secret into
linear_webhook_secret.
- Name:
- Copy
Client IDandClient secretintolinear_oauth_client_id/linear_oauth_client_secret. - Re-run Ansible so the env vars land in the container.
- Sign in to the Yak dashboard → Settings → Linear → Connect Linear
and approve the consent screen. A workspace admin must approve — the install requests
app:assignableandapp:mentionablescopes.
See Channels → Linear for usage and gotchas.
Sentry (optional)
Section titled “Sentry (optional)”- In your Sentry org, go to Settings → Developer Settings → Custom Integrations
- Click Create New Integration → Internal Integration
- Set permissions: Organization: Read, Project: Read, Issue & Event: Read (the first two are required for the Add Repository form to populate the Sentry project dropdown)
- Set the webhook URL to
https://{your-domain}/webhooks/sentry - Copy the Token into
sentry_auth_token - Copy the Webhook Signing Secret (under “Webhook Secret” in the integration’s Client Secret section) into
sentry_webhook_secret - Set
sentry_org_slugto your Sentry organization slug - Create an issue alert rule whose action notifies this integration, scoped to the issues you want Yak to pick up
- Map Sentry projects to repos via the
sentry_projectfield on each repo in the dashboard
See Channels → Sentry for filtering rules and gotchas.
Drone CI (optional)
Section titled “Drone CI (optional)”- Go to your Drone instance at
https://{drone-url}/account - Copy the Personal Token into
drone_token - Set
drone_urlto your Drone instance URL (e.g.https://drone.yourcompany.com)
Drone has no outbound webhooks — Yak polls the Drone API every minute for CI results, so no webhook config is required on the Drone side.
See Channels → Drone CI for usage and gotchas.
4. Configure the inventory
Section titled “4. Configure the inventory”Tell Ansible which server to provision:
cp ansible/inventory/hosts.example.yml ansible/inventory/hosts.ymlall: hosts: yak: ansible_host: 203.0.113.10 ansible_user: root ansible_python_interpreter: /usr/bin/python35. Provision
Section titled “5. Provision”ansible-playbook ansible/playbook.ymlThe playbook runs these roles in this order:
| # | Role | What it does |
|---|---|---|
| 1 | base | Creates the yak user. Configures UFW, fail2ban, swap and automatic security updates. |
| 2 | docker | Installs Docker Engine and Compose. |
| 3 | ssl | Installs Caddy, gets the certificate, writes the Caddyfile (including the wildcard preview block when DNS-01 is configured) and log rotation. |
| 4 | github-app | Creates and installs the GitHub App. Runs only while the three GitHub App credentials are missing. |
| 5 | mcp-config | Writes mcp-config.json with the MCP servers of the channels you enabled. |
| 6 | docker-registries | Writes registry logins for sandboxes. Runs only if docker_registries is set. |
| 7 | channel-slack, channel-linear, channel-sentry, channel-drone | Each runs only if its credentials are set. |
| 8 | incus | Installs ZFS and Incus, creates the yak-sandbox network and its ACL, opens the sandbox firewall rules and builds the yak-base image. |
| 9 | mariadb | Runs MariaDB with persistent storage. |
| 10 | redis | Runs Redis with an append-only file and a password. |
| 11 | yak-broker | Builds the broker on your machine, installs it with its systemd unit and opens the auth proxy port to the sandboxes. |
| 12 | telemetryd | Runs telemetryd. |
| 13 | yak-container | Pulls the geocodio/yak image, drains running work if a container already exists, starts the container, then runs yak:resume. |
| 14 | yak-ssh | Builds the SSH host binaries, installs the jump sshd, wake proxy and terminal bridge, and opens port 2222. |
| 15 | claude-code-config | Installs the yak-claude-login and yak-mcp helpers. |
The first run is slow: the incus role builds the sandbox base image from scratch. Later runs skip it until yak_sandbox_base_version changes.
Two things you will notice in the output:
- On a first run with blank GitHub App variables, the
github-approle prints instructions for creating the App. Follow them, fill in the vault and run the playbook again. - The last role prints a Claude login prompt. Threads do not use that shared login. They run on Claude accounts, which you add in the dashboard. The System health row “Claude accounts” turns green once one is usable.
First Sign-in
Section titled “First Sign-in”-
Open
https://yak.example.comand sign in with Google. Your email domain must be ingoogle_oauth_allowed_domains. The first person to sign in to a new Yak is its admin. Admins manage the shared Yak accounts and promote or demote other people in Settings > People. -
Add the shared Yak account. It does work nobody started (Sentry alerts, Linear automation, flaky test fixes), and people without their own account run on it too. Use a Claude seat that belongs to the team, not your personal one. Choose Add Yak account in the setup bar at the top of the page, or go to Settings > Claude accounts > Add Yak account.
- On your own computer, run
claude setup-token. It only prints a token and leaves your Claude login alone. - The command opens a sign-in page that uses your browser’s current Claude session. Copy the page’s address into a private browser window and sign in to the team seat there.
- Paste the token into the dialog and choose Connect.
To run the command on the server instead, over SSH:
Terminal window ssh <your-server> docker exec -it yak claude setup-tokenLogins for shared MCP servers still use the host-side login flow, not this dialog.
- On your own computer, run
-
Add your own Claude account if you want your threads to run on your plan: Connect Claude in the setup bar, or Settings > Claude accounts > Add account. Without a usable account a task cannot start a thread. See Claude accounts for how accounts are chosen and for how to make someone else an admin. Setting
YAK_SYSTEM_ACCOUNT_ADMIN_IDSinyak_extra_envnames admins in the server config instead. When it is set, the first person to sign in is not made an admin automatically. -
Add your first repository: Repositories > Add repository. Yak clones it with the GitHub App and runs a setup task. See Repositories.
-
Start a thread on that repository. See Threads.
Verify the Install
Section titled “Verify the Install”Open https://yak.example.com/health. The System section lists one row per check and the Channels section one per enabled channel. A healthy host shows these System rows green:
| Row | Healthy means |
|---|---|
| Queue Worker | Queue workers are running in the container. |
| Redis | Redis answers a ping. |
| Incus Daemon | The container can reach the host’s Incus socket. |
| Sandbox Base Template | The yak-base image exists at the current version. |
| Disk Space | The root disk is below its warning level. |
| Webhook Signatures | No webhook was rejected for a bad signature. |
| Repositories Reachable | Yak can fetch every repository you added. |
Voiceover reads as off without an ElevenLabs key, and the two shared-login rows described above can fail. Neither is a problem. The same checks run from the command line:
docker exec -u www-data yak php artisan yak:healthcheckThe scheduler runs them every 15 minutes. When a check fails, Yak posts to the Slack channel in slack_alert_channel. Each failing check alerts at most once per 24 hours, followed by one recovery message.
On the host, check that the processes behind threads are up:
docker ps --format '{{.Names}}' # yak, yak-mariadb, yak-redis, yak-telemetrydsystemctl is-active yak-broker yak-wake yak-termbridge yak-jump-sshddocker exec yak pgrep -fa 'yak:thread-drivers|yak:credential-socket|reverb:start'Then run a real turn: start a thread from the dashboard with a small request such as “Add a comment to the README explaining what this repo does”. If the thread streams output and opens a PR, the broker, runner, auth proxy and your Claude account all work. If it does not start, see Troubleshooting.
For each enabled channel, trigger a test event:
- Slack: mention
@yakin a channel. - Linear: assign a test issue to Yak (the OAuth app appears in the assignee picker).
- Sentry: trigger a test alert rule.
- GitHub: push a commit to a
yak/test-*branch.
Each event should create a task. Check the thread log in the dashboard, or the thread list.
Updating Yak
Section titled “Updating Yak”Routine updates
Section titled “Routine updates”CI builds a new image on every push to main and tags it geocodio/yak:latest and geocodio/yak:<commit sha>. To deploy:
git pullansible-playbook ansible/playbook.yml --tags yak-containerTo deploy one version:
ansible-playbook ansible/playbook.yml --tags yak-container -e yak_image_tag=abc1234The yak-container tag also runs the redis and telemetryd roles and the claude-code-config helpers. It does not rebuild the broker or the SSH host binaries. After you pull changes under broker/, or change a role, run the full playbook, or --tags yak-broker,yak-ssh for those two. Before it recreates the container, the playbook runs yak:drain, so in-flight work finishes or is force-failed and resumed. See Deploys and draining.
Adding a channel
Section titled “Adding a channel”- Add the channel’s credentials to
ansible/vault/secrets.yml. - Run
ansible-playbook ansible/playbook.yml. - Ansible regenerates the MCP config, updates the container environment and restarts the container.
- Set the external service’s webhook URL. See Channels.
Removing a channel
Section titled “Removing a channel”Clear the channel’s credentials in the vault (set them to empty strings) and run the playbook again. Webhook routes for disabled channels return 404. Tasks from that channel stay in the database.
Rotating secrets
Section titled “Rotating secrets”ansible-vault edit ansible/vault/secrets.ymlansible-playbook ansible/playbook.yml --tags secretsDo not rotate yak_app_key or yak_session_store_key: both encrypt data already stored.
Re-running a repository’s setup
Section titled “Re-running a repository’s setup”If a repository’s dev environment changes (new Docker services, a different database), choose Run setup again in the repository’s Sandbox section, or run:
docker exec -u www-data yak php artisan yak:setup-repo acme-storefrontSee Repositories.
Previews
Section titled “Previews”Thread previews and branch deployments use wildcard subdomains of yak_domain, such as t-<random>.yak.example.com. See Previews for what they are. Two things on the host make them work.
Wildcard DNS
Section titled “Wildcard DNS”Add a wildcard record for *.yak.example.com that points at the same server as the main yak_domain record. Check it with dig +short anything.yak.example.com.
DNS-01 TLS and a provider token
Section titled “DNS-01 TLS and a provider token”Wildcard certificates need the DNS-01 challenge, and Caddy needs a provider plugin in its binary.
-
Set
caddy_dns_providerinansible/group_vars/yak.ymlto one of Caddy’s DNS providers (for examplecloudflare,route53ordigitalocean). The default iscloudflare. -
Add the provider’s API token to the vault:
caddy_dns_provider_api_token: "<token with edit access to the yak_domain zone>" -
Run the full playbook. The
sslrole downloads a Caddy binary with the plugin and enables the wildcard block.
Without both values the Caddyfile serves the dashboard only, and previews do not work.
Where To Go Next
Section titled “Where To Go Next”- Operations: components, workers, scheduled commands, backups
- Claude accounts: who runs on which account
- Channels: per-channel configuration and usage
- Repositories: adding and managing repositories
- Architecture: how Yak works
- Troubleshooting: common problems