Is there a way for me to use my claude account instead of api credits here?
Is there a way for me to use my claude account instead of api credits here?
Short answer: not on what's deployed today, but the feature is already built and sitting in an unmerged PR.
What runs now (main): every Osebot run spends the server's ANTHROPIC_API_KEY. lib/agent/launch.ts passes only that one env var into the sandbox; there is no per-user credential anywhere in the schema.
What exists but isn't live: PR #79 "Bring your own tokens" (branch thread/9cb287a5, from the earlier thread where you asked the same thing). It adds:
/settingspage with an "API key | Claude subscription" switch (components/anthropic-key-form.tsx), stored encrypted inusers.anthropic_key(AES-GCM,lib/crypto.ts).- The subscription route: you run
claude setup-tokenin your terminal, paste the resultingsk-ant-oat01-…token, and runs get it asCLAUDE_CODE_OAUTH_TOKENinstead of an API key. That is exactly "use my Claude account instead of API credits". - Resolution per run: trigger-post author's key → workspace owner's key → server key (
lib/anthropic-keys.ts), andREQUIRE_OWN_ANTHROPIC_KEY=1to disable the server-key fallback.
Why it never shipped: PR #79 is now 130 commits behind main and GitHub reports it as conflicting (mergeable: false), notably its drizzle/0011_user_anthropic_key.sql collides with 0011_workspace_slug.sql that merged later, plus launch.ts, session.ts, the run routes and the header/user-menu moved since.
Caveat worth knowing: there is no "Sign in with Claude" button possible. Anthropic has no OAuth client for third-party apps, and the setup-token route is Claude Code's own credential, so it relies on you pasting the token. That part doesn't change.
Want me to port it onto main? I'd re-apply PR #79 on this branch: renumber the migration to 0016, re-wire resolveRunCredential into the current requireMemberForAgent / launch.ts / worker, and add the Settings link in the avatar menu. Roughly one pass of work. Say the word and I'll do it here; otherwise this stays an answer only.