ambit-cli
БесплатноБез исполняемых скриптовНе проверенUse this skill for any task involving the ambit CLI: creating or destroying private networks, deploying apps to a private network, checking network or router…
от modbender★ 21 звезда на GitHubОб этом скилле
Ambit CLI
What Ambit Is
Ambit deploys apps to the cloud in a way that makes them completely unreachable from the public internet. Only devices enrolled in the user's private Tailscale network can connect to them. From the outside world's perspective, the app does not exist — there is no IP address to find, no port to scan.
This matters because putting a database, dashboard, or internal tool on the normal internet forces you to build login pages, configure firewalls, and harden the app against strangers. Ambit skips all of that. Access control is handled at the network level: if a device is on the Tailscale network, it can reach the app; if it isn't, the connection is refused before the app ever sees it.
Each private network you create is called an ambit. Every app deployed to it gets a human-readable address under that network's name — so http://my-app.lab means the my-app application on the lab ambit. These addresses work automatically for any device enrolled in the user's Tailscale account.
Installation
If ambit is not already installed, run it directly via Nix:
npx @cardelli/ambit
How It Works
graph LR
A[Your Device<br/>on Tailscale] -->|Tailscale tunnel| B[Ambit Router<br/>Fly.io VM]
B -->|Flycast / private IPv6| C[Your App<br/>no public IP]
Ambit creates a router on Fly.io that joins the user's Tailscale network and advertises the private IPv6 subnet for that ambit. It also sets up split DNS so that *.<network> queries resolve to the right app. Apps deployed with ambit deploy get a private Flycast address on the network and never receive a public IP.
Prerequisites
flyctlinstalled and authenticated (fly auth login)- Tailscale installed and connected (
tailscale up) - Accept-routes enabled (
sudo tailscale set --accept-routes) - A Tailscale API access token (
tskey-api-...) — create one at https://login.tailscale.com/admin/settings/keys
Commands
ambit create <network>
Creates a new private network. This is the first command to run when setting up a new ambit. It deploys a router on Fly.io, connects it to the user's Tailscale network, and configures split DNS so apps on the network are reachable by name.
ambit create lab
ambit create lab --org my-org --region sea
ambit create lab --self-approve
Flags:
--org <org>— Fly.io organization slug--region <region>— Fly.io region (default:iad)--api-key <key>— Tailscale API access token (prompted interactively if omitted)--tag <tag>— Tailscale ACL tag for the router (default:tag:ambit-<network>)--self-approve— Approve subnet routes via Tailscale API instead of requiring autoApprovers in the ACL policy-y, --yes— Skip confirmation prompts--json— Output as JSON
What it does:
- Validates Fly.io auth and the Tailscale API key
- Checks that the tag (default
tag:ambit-<network>, or custom via--tag) exists in Tailscale ACL tagOwners - Checks autoApprovers config (unless
--self-approve) - Creates a Fly.io app on the custom network
- Sets secrets:
TAILSCALE_API_TOKEN,NETWORK_NAME,TAILSCALE_TAGS - Deploys the router container
- Waits for the device to join the tailnet
- Configures split DNS (
*.<network>→ router) - Enables accept-routes locally if possible
Before running, the user must add the router's tag in their Tailscale ACL settings at https://login.tailscale.com/admin/acls/visual/tags. The tag defaults to tag:ambit-<network> but can be overridden with --tag.
And optionally (or use --self-approve to skip this):
"autoApprovers": { "routes": { "fdaa:X:XXXX::/48": ["tag:ambit-<network>"] } }
ambit deploy <app> --network <name>
Deploys an app onto a private network. This is the safe alternative to fly deploy: it always passes --no-public-ips and --flycast, runs pre-flight checks on the fly.toml for dangerous settings, and audits the result to verify no public IPs were allocated.
There are three mutually exclusive deployment modes:
Config mode (default) — uses a local fly.toml:
ambit deploy my-app --network lab
ambit deploy my-app --network lab --config ./custom.toml
Image mode — deploys a Docker image without fly.toml:
ambit deploy my-app --network lab --image registry.fly.io/my-app:latest
ambit deploy my-app --network lab --image registry.fly.io/my-app:latest --main-port 3000
Template mode — fetches a template from a GitHub repository and deploys it:
ambit deploy my-browser --network lab --template ToxicPine/ambit-templates/chromatic
ambit deploy my-browser --network lab --template ToxicPine/ambit-templates/[email protected]
ambit deploy my-shell --network lab --template ToxicPine/ambit-templates/wetty
Flags:
--network <name>— Target network (required)--org <org>— Fly.io organizat
Установить ambit-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ambit-cli?
Use this skill for any task involving the ambit CLI: creating or destroying private networks, deploying apps to a private network, checking network or router health, listing routers, or diagnosing connectivity problems. Trigger phrases include "create a network", "set up ambit", "deploy with ambit", "ambit create", "ambit deploy", "ambit doctor", "check router status", "destroy a network", and similar.
Как установить скилл ambit-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ambit-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic