Installation
Setup
Set your API key:Usage
Swap your client class and method names. Options come directly from@anthropic-ai/claude-agent-sdk:
Method Mapping
| Claude SDK | Raysurfer |
|---|---|
new ClaudeSDKClient(options) | new RaysurferClient(options) |
client.query(prompt) | client.raysurferQuery(prompt) |
Options
Options are passed through directly from@anthropic-ai/claude-agent-sdk. 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.