Skip to main content
Use Tailscale through Corsair: one client, typed API calls. Connect with an API access token (expires after at most 90 days) or, better for a team, an OAuth client secret (tskey-client-…), which never expires and carries only the scopes it was given. Every call addresses the tailnet the key belongs to unless tailnet is set. Change the policy file with policyFile.validate first, then policyFile.set with the etag from policyFile.get. What you get:
  • 93 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List tagged servers
Mint an auth key for an agent node
See the full list on the API page.

What’s next

API reference

Every tailscale.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.