Skip to content

feat: select Anthropic accounts for Claude Code - #21

Merged
ygpark80 merged 1 commit into
mainfrom
feat/65-anthropic-account-selection
Aug 18, 2026
Merged

feat: select Anthropic accounts for Claude Code#21
ygpark80 merged 1 commit into
mainfrom
feat/65-anthropic-account-selection

Conversation

@ygpark80

@ygpark80 ygpark80 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

User description

Related to circlesac/prism#65

Changes

  • Add Claude Code account selection through the local authenticated bridge.
  • Preserve Claude Code OAuth mode while routing Prism requests with a bounded account selector.
  • Add browser PKCE callback coverage, usage integration, and explicit provider-side revocation messaging.

Testing

  • go test -mod=vendor -race ./...
  • go vet -mod=vendor ./...
  • go build -mod=vendor ./...

Notes

  • The selector is encoded for the local bridge and is not passed as a Claude Code argument.

CodeAnt-AI Description

Select a specific Anthropic account when using Claude Code without changing its OAuth login mode

What Changed

  • prism claude accepts an account alias or ID and routes requests through that Anthropic account
  • Claude Code arguments and existing OAuth credentials continue to work unchanged
  • Local bridge authentication rejects unauthorized requests and prevents credentials from being forwarded or logged
  • OAuth login ignores invalid callback hosts, accepts only the first valid callback, and reports cancellation or timeout clearly
  • Anthropic credential removal explains that Prism cleanup does not revoke access with Anthropic and points users to Anthropic security settings

Impact

✅ Account-specific Claude sessions
✅ Preserved Claude Code OAuth login
✅ Safer local bridge and OAuth callbacks

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai

codeant-ai Bot commented Aug 18, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 8de46b6 Aug 18, 2026 · 13:40 13:44

@codeant-ai

codeant-ai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1e969743-3e09-40fa-bcc7-0898069c8b85


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Aug 18, 2026
@ygpark80
ygpark80 merged commit 9938a5b into main Aug 18, 2026
1 check passed
@ygpark80
ygpark80 deleted the feat/65-anthropic-account-selection branch August 18, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant