Installation
Setup
Set your API key:Usage
Swap your client class and method names. Options come directly fromclaude_agent_sdk:
Method Mapping
| Claude SDK | Raysurfer |
|---|---|
ClaudeSDKClient(options) | RaysurferClient(options) |
await client.query(prompt) | await client.raysurfer_query(prompt) |
client.receive_response() | client.raysurfer_response() |
Options
Options are passed through directly fromclaude_agent_sdk.ClaudeAgentOptions. All standard options work:
RAYSURFER_API_KEY is set.
Full Example
Without Caching
IfRAYSURFER_API_KEY is not set, RaysurferClient behaves exactly like ClaudeSDKClient — no caching, just a pass-through wrapper.