Urgent.News

What's breaking now, across thousands of outlets.

Tech

Exporting ANTHROPIC_BASE_URL does not reach the Claude Code panel in VSCode

export ANTHROPIC_BASE_URL=http://127.0.0.1:20128 in your shell routes the claude CLI to a local endpoint. Open the Claude Code panel in VSCode in the same project and it still talks to Anthropic directly. The two live on different environment surfaces, and that is the whole problem. Why the shell variable does not carry over The CLI reads the environment of the process you started it from. The…

The Claude Code panel in Visual Studio Code does not inherit the ANTHROPIC_BASE_URL environment variable set in the shell. The VSCode extension spawns its agent process from the VSCode window process, which does not have the same environment settings as the shell that set the variable. As a result, when you open the Claude Code panel in VSCode, it continues to connect directly to Anthropic instead of using the local endpoint specified by the ANTHROPIC_BASE_URL shell variable.

The panel only receives the variable when VSCode is launched from a terminal that already has the variable set.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

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

Read the original at dev.to →

More in Tech

Graph Theory in C#

Using graph search to solve real-world problems in C# Most day-to-day C# work involves flat collections: filter a list, sort a table, look something up by key.

  • Graph theory solves reachability questions in C# programs
  • Graphs consist of nodes connected by edges, undirected or directed
  • BFS uses a queue for shortest path by hop count

More from Saturday 15 August →