Skip to content

Configured environment variables seem ineffective, Claude Code

Quick fix

After removing cc-switch, manually clean up local configuration as needed; session records in ~/.codex are unrelated to cc-switch.

Error output
用了cc-switch 之后,设置的环境变量似乎不起作用了。
English translation

After using cc-switch, configured environment variables seem to no longer take effect.

The report involves environment variables not taking effect, session records still appearing after closing it, and a request for complete removal. A commenter suggested deleting `~/.CC-switch` and `~/.codex`, but the maintainer clarified that session records are stored in `~/.codex` and are unrelated to cc-switch.

The maintainer stated that after removing cc-switch, local configuration will no longer be changed by cc-switch; existing local configuration must be changed or cleaned up manually. The original post did not provide verifiable steps to restore environment variables.

  1. Remove cc-switch; after removal, local configuration will no longer be changed by cc-switch.

  2. Manually change or clean up local configuration as needed. The comments mention `~/.CC-switch` and `~/.codex`; session records in `~/.codex` are unrelated to cc-switch.

  3. If the goal is to set environment variables directly, the original post does not yet provide a verifiable solution; continue following the source issue discussion.

ToolClaude Code
VersionUnknown
PlatformsUnknown

This page is distilled from 1 real issues

How do I completely remove this software?
The maintainer stated that cc-switch can be removed; local configuration must be changed or cleaned up manually.
I want to remove it completely and set environment variables directly.
The original post did not provide verifiable steps for setting environment variables directly. Session records are stored in `~/.codex`, which the maintainer stated is unrelated to cc-switch.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.