Skip to content

Environment Variables

OpenShrimp reads the following environment variables at runtime.

Your Anthropic API key. Passed through to the Claude CLI for authentication.

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."

This is optional if you have authenticated the Claude CLI via OAuth (claude login). When both are available, the API key takes precedence.

These are used internally by OpenShrimp and generally don’t need to be set manually.

VariableDescription
OPENSHRIMP_RESTART_CHAT_IDChat ID for post-restart confirmation (set by /restart)
OPENSHRIMP_RESTART_THREAD_IDThread ID for post-restart confirmation (set by /restart)