Skip to content

Commit ca6045c

Browse files
claude code docs
1 parent 4ddc89a commit ca6045c

File tree

1 file changed

+2
-53
lines changed

1 file changed

+2
-53
lines changed

integrations/libraries/claude-code.mdx

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With Portkey integration, you can enhance Claude Code with enterprise features:
1313
- **Advanced Routing** - Use fallbacks, load balancing, and conditional routing for reliability
1414

1515
<Note>
16-
If you're using Claude Code in an enterprise setting, [check out the governance section](#3-set-up-enterprise-governance-for-claude-code) for team-wide deployment guidance.
16+
This integration uses Portkey's Gateway Passthrough feature. Advanced Portkey capabilities - such as cost calculation, reliability features, and more are not supported yet.
1717
</Note>
1818

1919
# 1. Setting up Portkey
@@ -296,56 +296,6 @@ Set up monitoring in Portkey:
296296

297297
# Advanced Features
298298

299-
## Reliability Configuration
300-
301-
Enhance Claude Code reliability with Portkey configs:
302-
303-
<Tabs>
304-
<Tab title="Fallback Setup">
305-
```json
306-
{
307-
"strategy": {
308-
"mode": "fallback"
309-
},
310-
"targets": [
311-
{
312-
"virtual_key": "anthropic-vk",
313-
"override_params": {
314-
"model": "claude-sonnet-4-20250514"
315-
}
316-
},
317-
{
318-
"virtual_key": "bedrock-vk",
319-
"override_params": {
320-
"model": "us.anthropic.claude-sonnet-4-20250514-v1:0"
321-
}
322-
}
323-
]
324-
}
325-
```
326-
</Tab>
327-
328-
<Tab title="Load Balancing">
329-
```json
330-
{
331-
"strategy": {
332-
"mode": "loadbalance"
333-
},
334-
"targets": [
335-
{
336-
"virtual_key": "bedrock-vk-1",
337-
"weight": 0.7
338-
},
339-
{
340-
"virtual_key": "bedrock-vk-2",
341-
"weight": 0.3
342-
}
343-
]
344-
}
345-
```
346-
</Tab>
347-
</Tabs>
348-
349299
## Caching for Faster Responses
350300

351301
Enable caching in your Portkey config to speed up repeated queries:
@@ -354,8 +304,7 @@ Enable caching in your Portkey config to speed up repeated queries:
354304
{
355305
"virtual_key": "YOUR_VIRTUAL_KEY",
356306
"cache": {
357-
"mode": "semantic",
358-
"max_age": 3600
307+
"mode": "simple",
359308
}
360309
}
361310
```

0 commit comments

Comments
 (0)