Skip to content

Can this package be used for third-party applications? #6

@informatJonas

Description

@informatJonas

Hi,

I'm trying to integrate Anthropic OAuth authentication into my own application using this package's approach.

I've copied the OAuth flow implementation with:

  • Client ID: 9d1c250a-e61b-44d9-88ed-5944d1962f5e
  • Scopes: org:create_api_key user:profile user:inference user:sessions:claude_code
  • PKCE: S256 code challenge
  • Redirect URI: http://localhost:41539/callback

However, I'm consistently getting a 400 Invalid request format error from claude.ai/oauth/authorize.

Questions:

  1. Is this OAuth client ID registered only for OpenCode's specific redirect URIs?
  2. Can third-party applications use this package/client ID with their own redirect URIs?
  3. Or do we need to register our own OAuth application with Anthropic?

I couldn't find any public documentation on registering OAuth applications with Anthropic, so I'm wondering if this is only available to whitelisted partners.

Thanks for any clarification!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions