65cd85d321
Stacked on #1680. Auth moved to Hydra OAuth in #1481, which left `ensureAccessToken()` with no callers and the module-level API client attaching a stale `Authorization: Bearer <access token>` header to every request. This drops `ensureAccessToken()`, the `accessToken` export, the `E2B_ACCESS_TOKEN` arm of the auth error box, and the `apiHeaders` wiring on `connectionConfig` — the only consumers of that header were `template list`/`create`, and `/templates` is scoped by the API key alone, while `auth login` / `auth configure` build their own clients with Hydra JWTs. `requireApiKey: false` stays on the shared client, but its justification is now that `e2b auth login` runs before any API key exists and the client is built at import time. User-facing effect: combined with #1680, the CLI ignores `E2B_ACCESS_TOKEN` entirely, so CI setups can drop it and keep only the API key. ```bash # Before: both were commonly set in CI export E2B_ACCESS_TOKEN=sk_e2b_... export E2B_API_KEY=e2b_... # Now: the API key alone authorizes everything the CLI calls export E2B_API_KEY=e2b_... e2b template list e2b template create my-template ``` Part of [SDK-6](https://linear.app/e2b/issue/SDK-6/mark-e2b-access-token-as-deprecated-inside-all-code-references). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>