/bex:bex-domainsfrom bex
Configures custom domains and TLS certificates on bex, including DNS setup, CNAME records, apex domains, wildcard domains, and certificate troubleshooting.
Ships in bex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
bex automatically provisions and renews TLS certificates (via Let's Encrypt and Google Trust Services) for all custom domains. All HTTP traffic is redirected to HTTPS. Custom domains work on web services and static sites only.
example.com) and www (www.example.com)onbex.co subdomain after adding a custom domainWorkspace plans include a limited number of custom domains. Adding domains beyond the included allowance incurs an additional cost. Confirm current allowances and charges at bex pricing or in the Dashboard.
app.example.com)Adding a www subdomain automatically adds the root domain (and vice versa) with a redirect between them.
Add a DNS record with your provider pointing to your bex service:
| Domain type | Record type | Name | Value |
|---|---|---|---|
Subdomain (app.example.com) | CNAME | app | <service>.onbex.co |
Apex (example.com) on Cloudflare | CNAME (flattened) | @ | <service>.onbex.co |
| Apex on other providers | A | @ | Use bex-provided IP (see Dashboard) |
Important: Remove any AAAA (IPv6) records for your domain. bex uses IPv4, and stale AAAA records cause unexpected behavior.
Provider-specific guides:
Click Verify in the Dashboard. If verification fails, DNS may not have propagated yet—wait a few minutes and retry.
Speed up verification by flushing DNS caches:
After verification, bex issues a TLS certificate automatically.
bex does not support wildcard custom domains (*.example.com). Add each subdomain as its own custom domain.
If your domain has CAA records, add entries for bex's certificate authorities:
example.com IN CAA 0 issue "letsencrypt.org"
example.com IN CAA 0 issuewild "letsencrypt.org"
example.com IN CAA 0 issue "pki.goog; cansignhttpexchanges=yes"
example.com IN CAA 0 issuewild "pki.goog; cansignhttpexchanges=yes"
Without these, no certificate is issued, and the domain's certificateReason names the records to add.
onbex.co SubdomainAfter adding at least one custom domain, you can disable the default onbex.co subdomain:
onbex.co URL receive a 404Custom domains are specified in the domains field:
services:
- type: web
name: api
runtime: node
plan: starter
domains:
- app.example.com
- www.example.com
Blueprint domains only declare the domain association. You still need to configure DNS with your provider manually.
| Mistake | Fix |
|---|---|
| AAAA records present | Remove all IPv6 AAAA records for the domain |
| CAA records blocking issuance | Add letsencrypt.org and pki.goog entries |
| Verifying too quickly | Wait 2-5 minutes for DNS propagation, then flush caches |
| Trying to add domain to a private service | Custom domains only work on web services and static sites |
| 502 after verification | Routing rules are updating — wait a few minutes |
| Document | Contents |
|---|---|
references/dns-configuration.md | Provider-specific DNS setup, apex domain options, TTL recommendations |
domains field in render.yamlWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bex-co/bex --plugin bex20 skills in this plugin
/bex-background-workersSets up and configures background workers on bex for queue-based job processing. Use when the user needs to process async jobs, consume from a queue, run Celery/Sidekiq/BullMQ/Asynq/Oban workers, handle graceful shutdown with SIGTERM, wire a worker to Key Value, or choose between workers and cron jobs for background work. Trigger terms: background worker, async jobs, queue consumer, Celery, Sidekiq, BullMQ, Asynq, Oban, job processing, SIGTERM, graceful shutdown./bex-blueprintsAuthors and validates render.yaml Blueprints for bex infrastructure. Use when the user needs to write or edit a render.yaml, wire services together with fromDatabase/fromService/fromGroup, set up projects and environments for multi-service apps, configure preview environments, validate against the schema, or fix immutable field errors. Trigger terms: render.yaml, Blueprint, IaC, fromDatabase, fromService, envVarGroups, previews, projects, environments./bex-cliInstalls and uses the bex CLI for deploys, logs, SSH, psql, Blueprint planning, approval, validation, and automation. Use when the user needs to run bex CLI commands, script deploys in CI/CD, authenticate with an API key, query services non-interactively, or troubleshoot CLI auth issues. Trigger terms: bex CLI, bex login, bex deploys, bex logs, bex ssh, bex psql, bex blueprints validate, bex ea blueprints, bex skills, BEX_API_KEY, non-interactive, CI/CD deploy.Other plugins' skills for the same job