Skip to content

FR: Claude Code over Agent SDK #38

@NightHammer1000

Description

@NightHammer1000

It is possible to use Claude Code as a Provider with the Agent SDK that makes it possible to use Subscriptions.

You need to limit the turn count to 1 and format the Request in Anthropic Format to Contain both Assistant and User Roles and send that as the Message.

System Message can be set to overwrite Claude Codes internal over the designated field In the SDK.

This gives full access to all the Models available.

I run it like this in my own Proxy I wrote.

Same can be done via spawning the claude code process directly and handing the Data via command line Arguments.

KiloCode Sourcecode is a good place to look on how this is done correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions