Skip to content
AnchrasDocumentation
Browse documentation

Integrations / User guide

AI providers

Preview

Tailscale Aperture

Configure Tailscale Aperture through the AI gateway with explicit endpoint, credential and model verification.

On this page

Before you begin

You need an Aperture node in your organization's tailnet and a tailnet provider connection in Anchras (the same one that lists your devices). Anchras reads the tailnet's nodes from that connection, so you pick the Aperture node instead of typing its URL; the base URL is derived from the node's MagicDNS name (http://aperture.your-tailnet.ts.net/v1). Saving the provider imports that node into the Anchras device inventory. Provider keys stay in Aperture; Anchras is identified by its Tailscale node, so no key is entered here. Sovereignty depends on the upstream model provider. You need permission to manage providers in Anchras. If the node listing is unavailable on your control plane, the form still accepts the URL directly.

How Anchras reaches Aperture depends on where the control plane runs and who owns the tailnet:

  • Self-hosted control plane that is a member of your tailnet (including a Headscale network): the Anchras server process connects directly, using its own Tailscale identity.
  • Anchras-managed tailnet or Anchras Network on the hosted service: each organization gets its own tailnet, and the hosted control plane is not a member of it. Tailnet addresses are unique only within one tailnet, so Anchras does not dial your Aperture node directly; it uses an egress agent, as for a customer-owned tailnet below.
  • Customer-owned tailnet on the hosted service: the server is not on your tailnet. Anchras opens a reverse tunnel through one of your Anchras host agents on the same tailnet (the *egress agent*), which connects to Aperture from its own Tailscale node. At least one enrolled, heartbeating host agent on that tailnet is required, running an agent release that supports peer tunnels. Grant that agent's node (or its tag) access in Aperture.

Saving the provider checks this up front: an endpoint the control plane has no path to is refused with the reason, rather than failing on the first request.

Connect the provider

  1. Open Integrations, select Tailscale Aperture, and choose Connect. The AI gateway opens the preset under On your tailnet in the provider picker.
  2. The form lists your tailnet's nodes, Aperture-looking ones first (a hostname or tag naming Aperture), and states how Anchras will reach the node: directly, or through a named egress host agent. Pick the Aperture node; the base URL fills in. Use Enter the URL instead for a node the listing does not show.
  3. Confirm the display name and enabled state. No credential is bound: Aperture authenticates the Tailscale node.
  4. Save the provider. With auto-import on, the models Aperture exposes are registered; otherwise import or register the intended models and configure a route before directing application requests to it.

Verify the connection

Use provider catalog discovery when supported, then send a small authorized request through a scoped Anchras gateway application key. Check the returned model and attributed usage. Provider creation alone does not prove live endpoint access or model compatibility. Testing a hosted model can incur provider charges.

Operate the connection

Return to Integrations to inspect the saved connection. Manage opens its exact provider ID for renaming, enabling or disabling, and credential actions. Rotate provider credentials independently from application keys. Recheck the route after rotation or endpoint changes.

Availability and limits

Preview: the setup preset with tailnet node picking, connection discovery and the egress-agent tunnel are implemented; this label does not certify every model, provider permission or production workload. Verify the exact endpoint and model before relying on it. Upstream provider credentials remain in Aperture. Model access depends on the Tailscale identity Aperture sees (the server's when the control plane is a member of your tailnet, otherwise the egress agent's node) and on Aperture policy. Prompts follow the selected provider route; deployment location and upstream model processing determine where data is handled. Aperture providers have no periodic health probe; a failing endpoint surfaces on discovery and on requests, where the routing policy's fallback target applies.

Troubleshooting

If the node picker shows no nodes, check the tailnet provider connection under Settings → Network providers; anchras ai providers aperture-nodes prints the same listing and reach path. Check reachability and the API base path before changing credentials. "Names no node in this organization's tailnet" means the tailnet provider does not know the hostname; check it in the Tailscale admin console. "Must name exactly one authorized device" means the inventory row is missing, duplicated or unauthorized; run anchras networks devices import --hostname <name> (or --provider-device-id) to import or refresh it. "No connected Anchras host agent" means no enrolled agent on that tailnet has heartbeated in the last two minutes. "Rejected the peer tunnel" means the egress agent runs a release without peer-tunnel support or has no active tsnet node; upgrade or re-enroll it. For authentication errors, distinguish the upstream provider credential from the Anchras application key. For model errors, check the exact model ID, provider access and configured route. An untested connection has no verified live-health evidence.