Claude: sign in with claude.ai inside CodexBar when Claude Code is not installed
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 43/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- swift
- Domain
- authentication, desktop
Research direction
Start by reading the Claude cookie configuration and recovery guidance in docs/claude.md, then trace the existing manual cookie setting used by codexbar config set-cookie. The proposal describes a macOS WKWebView sign-in flow, cookie storage, expiry handling, and refresh behavior; check how those pieces fit the app's current authentication and usage refresh paths. Done means a user can sign in without Claude Code and see usage, with expired sessions prompting sign-in again.
Written by the indexing model from the issue text.
Description
Problem
Claude usage needs one of three sources: Claude Code's OAuth login, the Claude Code CLI, or browser cookies. The built-in "Claude login" runs claude auth login --claudeai, so it requires Claude Code to be installed.
Users who only use claude.ai in a browser have no simple path:
- Browser cookie import fails for some browsers and setups (for example Firefox profiles, Safe Storage Keychain prompts, or the wrong browser profile).
- The fix today is the manual recovery steps in
docs/claude.mdor installing and signing in to Claude Code. That is hard for non-developers.
Proposal
Add an optional "Sign in with claude.ai" window:
- Open a small
WKWebViewonhttps://claude.ai/loginwith a non-persistent data store (nothing shared with Safari). - After sign-in, read the
sessionKeycookie from that store. - Save it as a manual cookie for Claude (the same result as
codexbar config set-cookie), close the window, clear its data and refresh. - When the session expires (401/403), show "Sign in" again instead of silently falling back to another source.
What we learned from a prototype
We built this in a downstream app on top of CodexBar's manual cookie setting (cookieSource: "manual" + cookieHeader) and tested it on macOS:
- Sign-in on claude.ai worked inside
WKWebView(no Cloudflare loop). - The window closed and usage appeared within a minute; values matched claude.ai/settings/usage.
- Limits: password autofill does not work in the embedded window (claude.ai does not allow third-party apps for associated domains), and Google sign-in may be blocked in embedded web views by Google's policy, so e-mail code sign-in is the reliable path.
Happy to share more details if this direction fits CodexBar.
- Dominant language
- Swift
- Stars
- 22.8k
- Forks
- 2.2k
- Avg merge
- 21h 49m
- Merged PRs (30d)
- 368
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from steipete/CodexBar
-
Improve readability of red pace text in stacked menu bar layoutPossibly taken @steipete claimed this 2 days ago. Openclawsweeper:fix-shape-clear clawsweeper:needs-live-repro clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🐚 platinum hermit P2
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
steipete/CodexBar#4714 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Copilot: menu bar Pace token shows – for the monthly Premium quotaPossibly taken @chriscorbell claimed this today. Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 3/5 1-2 days Newbie friendliness 20/100
steipete/CodexBar#4847 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Difficulty 4/5 3-5 days Newbie friendliness 42/100
steipete/CodexBar#4846 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:auth-provider impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 5/5 Over a week Newbie friendliness 35/100
steipete/CodexBar#4845 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Difficulty 5/5 Over a week Newbie friendliness 15/100
steipete/CodexBar#4844 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in steipete/CodexBar
Similar issues
-
area: browser
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
manaflow-ai/cmux#27619 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
matteocrippa/awesome-swift#2028 ·
Maintainers usually reply within 3 days
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
CTC keyword spotter hears silence: MelSpectrogram on the Neural Engine yields all-blank CTC framesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FluidInference/FluidAudio#1074 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
paritytech/trinity-user-agents#1783 ·
Maintainers usually reply within 1 day