# AI SDK harness layer now supports native subscription authentication

By Steven Van · 2026-09-14

Vercel's AI SDK harnesses can now authenticate via a coding agent's own subscription login, with no code changes required.

Vercel's [AI SDK](<https://creatorstoolbox.com/tools/vercel>) harness layer, which runs coding agents like Claude Code, Codex and Cursor behind a shared HarnessAgent interface, can now authenticate using a harness's own native subscription instead of only API keys. No code changes or new settings are needed.

- The default auto mode, and the explicit direct mode, use a native subscription found on the host whenever explicit provider credentials or AI Gateway credentials aren't set; the ai-gateway mode never reads native subscriptions.

- Credentials are resolved at the host boundary, the same way API keys are, with OAuth access tokens refreshed there as needed.

- Where the sandbox supports it, the harness itself only sees placeholder credentials, and the real token is injected into outbound requests on the host.

- Native subscription login is supported across the Claude Code, Cline, Codex, Cursor, fx, GitHub Copilot, Grok Build, OpenCode, and Pi [harness adapters](<https://ai-sdk.dev/v7/providers/ai-sdk-harnesses>), wherever the underlying harness itself supports it.

[![](<https://ai-sdk.dev/og/docs?title=AI%20SDK%20Harnesses&description=Use%20established%20agent%20harnesses%20through%20the%20AI%20SDK.>)](<https://ai-sdk.dev/v7/providers/ai-sdk-harnesses>)

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

Sources

[Original source](<https://ai-sdk.dev/v7/providers/ai-sdk-harnesses>)

[Read AI SDK harness layer now supports native subscription authentication on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-ai-sdk-harness-layer-now-supports-native-subscription-authentication>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-ai-sdk-harness-layer-now-supports-native-subscription-authentication
