Skip to content

[FEATURE]: Add Aperture gateway provider #28386

@wedow

Description

@wedow

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Aperture is Tailscale's AI gateway. It sits in front of Anthropic, OpenAI, Bedrock, Vertex, and other upstream providers, handling auth and routing for organizations.

You can configure Aperture as a custom provider today, but it doesn't work well. Each model has to be declared manually, and the correct AI SDK depends on which upstream provider is behind a given model. A Claude model routed through Bedrock needs @ai-sdk/anthropic, a GPT model needs @ai-sdk/openai, a Gemini model needs @ai-sdk/openai-compatible, etc. Users can't express that through config, and the model list changes as admins enable or disable upstream providers.

Aperture's /v1/models endpoint returns the full model catalog with upstream provider metadata, so a built-in provider can discover models at startup and route each one to the right SDK automatically. No hardcoded model list to maintain.

I work on the Aperture team at Tailscale. I've built this on my fork and have been running it for the past week. Opening a PR with that implementation as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions