Urgent.News

What's breaking now, across hundreds of outlets.

AI

I tracked every Claude Code session for a month, and these 3 habits were burning most of my usage

My favorite workflow was my most expensive one

I tracked every Claude Code session for a month, and these 3 habits were burning most of my usage

Claude Code allows you to run code using open-weight models hosted in the US. This is achieved by changing the location of requests in the Anthropic Messages API with the ANTHROPIC_BASE_URL. By pointing it at ScaledThought, an API compatible with OpenAI and Anthropic, Claude Code maintains its tools, permissions, and workflow while using a different model to perform the actual thinking.

To start, you need to obtain a key. This can be done by an agent or by running the CLI command "npx -y scaledthought@0.3 init --region us --source org-devto --email you@example.com". This command writes the ST_API_KEY and ST_BASE_URL to the .env file, which is not displayed and added to .gitignore. The usage is prepaid, with a top-up link to approve and no subscription required. Users can choose a daily budget to prevent runaway sessions from incurring costs.

To set up Claude Code, the environment variables ST_API_KEY, ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_DEFAULT_HAIKU_MODEL need to be exported. These variables allow Claude Code to communicate with the API and specify the model to use.

When using Claude Code, keep in mind that the model being used may not be Claude. The system prompt tells the model it is Claude, so an open model might introduce itself in that manner. The response model field will indicate which model actually answered the request.

Claude Code's request are sent under a Claude model name, and while Anthropic's server-side tools like web search are not available, Claude Code still functions. It assumes a 200k-token context window for auto-compaction and billing is charged per token reported by the model server. For current models and prices, visit scaledthought.com/pricing or run "npx -y scaledthought@0.3 models --live".

The full guide, including the MCP server for keys, budgets, and billing within Claude Code, can be found at scaledthought.com/guides/claude-code. Claude and Claude Code are trademarks of Anthropic, and model names are trademarks of their respective owners.

Rewritten by urgent.news; may contain errors — check the original.

Sources: dev.to · xda-developers.com

This story

This is one outlet's version. Read the fullest account.

Every outlet that reported this, and when →

Read the original at xda-developers.com →

Report a problem with this story

More in AI

UAE university enrolment rises 13% as AI changes skills needed for future jobs

More than 57,000 new students enrolled in UAE universities during the 2024–25 academic year, marking a 13 per cent increase compared to the previous year and the highest intake recorded in a decade. The figures, reported by 66 higher education institutions across the country, come as universities face growing pressure to prepare students…

More from Tuesday 13 October →