AI SDK harness layer now supports native subscription authentication
The AI SDK harness layer now authenticates through native subscriptions where supported by the underlying harness. Credentials remain on the host while the harness receives placeholder credentials, enabling seamless agent switching without code changes across adapters like Claude Code, Cline, and GitHub Copilot.
The now supports authenticating harnesses through their native subscriptions, where the underlying harness supports them. The harness layer runs different coding agents through the same interface, so you can switch agents without changing your application code.AI SDK harness layerHarnessAgent
No code changes or new settings are required. The authentication mode uses explicit provider environment credentials when they are present, and otherwise a native subscription found on the host. The default mode does the same when no AI Gateway credentials are set. The mode never reads native subscriptions.directautoai-gateway
Native subscription credentials stay on the host. Just like with API keys, credentials are resolved at the host boundary. OAuth access tokens are refreshed there as needed. Where the sandbox supports it, the harness receives placeholder credentials and the real token is injected into outbound requests on the host.
Native subscriptions work across harness adapters wherever the harness itself supports subscription login. These include Claude Code, Cline, Codex, Cursor, fx, GitHub Copilot, Grok Build, OpenCode, and Pi.
Read the to learn more.harness documentation
Source: original entry ↗