Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Automatically handles tool execution loop changedcli-sdks-libraries/sdks/ruby

Nearest release: v2.1.333, published 4 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+5added
Lines−1removed
From line 40 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits21to this page, all time

The whole hunk

from line 40, old and new numbered
/
lines
from line 40
4040end
4141```
4242 
43For authentication options including Workload Identity Federation, see [Authentication](https://platform.claude.com/docs/en/manage-claude/authentication). If your API key is a [personal or service account key](https://platform.claude.com/docs/en/manage-claude/authentication#key-types) that isn’t scoped to a workspace, set the workspace ID in the `anthropic-workspace-id` request header; [Select a workspace](https://platform.claude.com/docs/en/manage-claude/authentication#select-a-workspace) shows the per-request option for this SDK.
43For authentication options, including Workload Identity Federation, see [Authentication](https://platform.claude.com/docs/en/manage-claude/authentication). If your API key is a [personal or service account key](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types) scoped to the organization, set the workspace ID in the `anthropic-workspace-id` request header. For this SDK’s per-request option, see [Select a workspace](https://platform.claude.com/docs/en/manage-claude/api-keys#select-a-workspace) on the Developer API keys page.
44 
45If you sign in with `ant auth login`, the SDK doesn’t renew the access token that the sign-in stores. After the token expires, requests fail with an authentication error.
46 
47To renew the token, run `ant auth print-credentials --access-token > /dev/null`. If the token has expired or expires within 2 minutes, the command renews it and saves the new one. The redirect keeps the token out of your terminal and logs. The SDK reads the new token on its next request, so you don’t need to restart your application. If the command warns that it couldn’t renew the token, sign in again with `ant auth login`.
4448 
4549## Streaming
4650 
Feedback