Every profile field maps 1:1 to a Claude Code environment variable. The YAML field name is the lowercased env var name.
For the full official documentation, see code.claude.com/docs/en/env-vars.
- String fields are set as-is when non-empty.
- Bool fields emit
"1" when true, and are skipped when false.
- The
env: map is an escape hatch for any env var not covered by a named field.
When a profile is launched, environment variables are applied in this order (later wins):
- Global
env: block (top-level, applies to all profiles)
- Profile struct fields (the named YAML fields below)
- Profile
env: block (per-profile escape hatch)
| YAML field | Env var | Type |
anthropic_api_key | ANTHROPIC_API_KEY | string |
anthropic_auth_token | ANTHROPIC_AUTH_TOKEN | string |
anthropic_base_url | ANTHROPIC_BASE_URL | string |
anthropic_custom_headers | ANTHROPIC_CUSTOM_HEADERS | string |
anthropic_betas | ANTHROPIC_BETAS | string |
claude_code_oauth_token | CLAUDE_CODE_OAUTH_TOKEN | string |
claude_code_oauth_refresh_token | CLAUDE_CODE_OAUTH_REFRESH_TOKEN | string |
claude_code_oauth_scopes | CLAUDE_CODE_OAUTH_SCOPES | string |
claude_code_api_key_helper_ttl_ms | CLAUDE_CODE_API_KEY_HELPER_TTL_MS | string |
claude_config_dir | CLAUDE_CONFIG_DIR | string |
claude_project_dir | CLAUDE_PROJECT_DIR | string |
| YAML field | Env var | Type |
anthropic_model | ANTHROPIC_MODEL | string |
anthropic_default_opus_model | ANTHROPIC_DEFAULT_OPUS_MODEL | string |
anthropic_default_sonnet_model | ANTHROPIC_DEFAULT_SONNET_MODEL | string |
anthropic_default_haiku_model | ANTHROPIC_DEFAULT_HAIKU_MODEL | string |
claude_code_subagent_model | CLAUDE_CODE_SUBAGENT_MODEL | string |
claude_code_effort_level | CLAUDE_CODE_EFFORT_LEVEL | string |
claude_effort | CLAUDE_EFFORT | string |
anthropic_small_fast_model | ANTHROPIC_SMALL_FAST_MODEL | string |
anthropic_small_fast_model_aws_region | ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION | string |
| YAML field | Env var | Type |
anthropic_custom_model_option | ANTHROPIC_CUSTOM_MODEL_OPTION | string |
anthropic_custom_model_option_name | ANTHROPIC_CUSTOM_MODEL_OPTION_NAME | string |
anthropic_custom_model_option_description | ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION | string |
anthropic_custom_model_option_supported_capabilities | ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES | string |
anthropic_default_opus_model_name | ANTHROPIC_DEFAULT_OPUS_MODEL_NAME | string |
anthropic_default_opus_model_description | ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION | string |
anthropic_default_opus_model_supported_capabilities | ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES | string |
anthropic_default_sonnet_model_name | ANTHROPIC_DEFAULT_SONNET_MODEL_NAME | string |
anthropic_default_sonnet_model_description | ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION | string |
anthropic_default_sonnet_model_supported_capabilities | ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES | string |
anthropic_default_haiku_model_name | ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME | string |
anthropic_default_haiku_model_description | ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION | string |
anthropic_default_haiku_model_supported_capabilities | ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES | string |
| YAML field | Env var | Type |
claude_code_use_bedrock | CLAUDE_CODE_USE_BEDROCK | bool |
claude_code_use_vertex | CLAUDE_CODE_USE_VERTEX | bool |
claude_code_use_foundry | CLAUDE_CODE_USE_FOUNDRY | bool |
claude_code_use_mantle | CLAUDE_CODE_USE_MANTLE | bool |
anthropic_bedrock_base_url | ANTHROPIC_BEDROCK_BASE_URL | string |
anthropic_bedrock_mantle_base_url | ANTHROPIC_BEDROCK_MANTLE_BASE_URL | string |
anthropic_bedrock_service_tier | ANTHROPIC_BEDROCK_SERVICE_TIER | string |
aws_bearer_token_bedrock | AWS_BEARER_TOKEN_BEDROCK | string |
claude_code_skip_bedrock_auth | CLAUDE_CODE_SKIP_BEDROCK_AUTH | bool |
claude_code_skip_mantle_auth | CLAUDE_CODE_SKIP_MANTLE_AUTH | bool |
anthropic_vertex_base_url | ANTHROPIC_VERTEX_BASE_URL | string |
anthropic_vertex_project_id | ANTHROPIC_VERTEX_PROJECT_ID | string |
claude_code_skip_vertex_auth | CLAUDE_CODE_SKIP_VERTEX_AUTH | bool |
anthropic_foundry_base_url | ANTHROPIC_FOUNDRY_BASE_URL | string |
anthropic_foundry_resource | ANTHROPIC_FOUNDRY_RESOURCE | string |
anthropic_foundry_api_key | ANTHROPIC_FOUNDRY_API_KEY | string |
claude_code_skip_foundry_auth | CLAUDE_CODE_SKIP_FOUNDRY_AUTH | bool |
| YAML field | Env var | Type |
max_thinking_tokens | MAX_THINKING_TOKENS | string |
claude_code_disable_thinking | CLAUDE_CODE_DISABLE_THINKING | bool |
claude_code_disable_adaptive_thinking | CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING | bool |
disable_interleaved_thinking | DISABLE_INTERLEAVED_THINKING | bool |
claude_code_max_context_tokens | CLAUDE_CODE_MAX_CONTEXT_TOKENS | string |
claude_code_max_output_tokens | CLAUDE_CODE_MAX_OUTPUT_TOKENS | string |
claude_code_disable_1m_context | CLAUDE_CODE_DISABLE_1M_CONTEXT | bool |
claude_code_max_retries | CLAUDE_CODE_MAX_RETRIES | string |
claude_autocompact_pct_override | CLAUDE_AUTOCOMPACT_PCT_OVERRIDE | string |
disable_auto_compact | DISABLE_AUTO_COMPACT | bool |
disable_compact | DISABLE_COMPACT | bool |
claude_code_auto_compact_window | CLAUDE_CODE_AUTO_COMPACT_WINDOW | string |
claude_code_file_read_max_output_tokens | CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS | string |
| YAML field | Env var | Type |
api_timeout_ms | API_TIMEOUT_MS | string |
claude_stream_idle_timeout_ms | CLAUDE_STREAM_IDLE_TIMEOUT_MS | string |
claude_enable_stream_watchdog | CLAUDE_ENABLE_STREAM_WATCHDOG | bool |
claude_enable_byte_watchdog | CLAUDE_ENABLE_BYTE_WATCHDOG | string |
claude_code_disable_nonstreaming_fallback | CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK | bool |
http_proxy | HTTP_PROXY | string |
https_proxy | HTTPS_PROXY | string |
no_proxy | NO_PROXY | string |
claude_code_proxy_resolves_hosts | CLAUDE_CODE_PROXY_RESOLVES_HOSTS | bool |
claude_code_cert_store | CLAUDE_CODE_CERT_STORE | string |
claude_code_client_cert | CLAUDE_CODE_CLIENT_CERT | string |
claude_code_client_key | CLAUDE_CODE_CLIENT_KEY | string |
claude_code_client_key_passphrase | CLAUDE_CODE_CLIENT_KEY_PASSPHRASE | string |
claude_code_attribution_header | CLAUDE_CODE_ATTRIBUTION_HEADER | string |
claude_code_extra_body | CLAUDE_CODE_EXTRA_BODY | string |
claude_code_enable_fine_grained_tool_streaming | CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING | string |
claude_code_enable_gateway_model_discovery | CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY | bool |
claude_code_disable_legacy_model_remap | CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP | bool |
fallback_for_all_primary_models | FALLBACK_FOR_ALL_PRIMARY_MODELS | string |
| YAML field | Env var | Type |
enable_tool_search | ENABLE_TOOL_SEARCH | string |
max_mcp_output_tokens | MAX_MCP_OUTPUT_TOKENS | string |
mcp_timeout | MCP_TIMEOUT | string |
mcp_connect_timeout_ms | MCP_CONNECT_TIMEOUT_MS | string |
mcp_tool_timeout | MCP_TOOL_TIMEOUT | string |
mcp_client_secret | MCP_CLIENT_SECRET | string |
mcp_oauth_callback_port | MCP_OAUTH_CALLBACK_PORT | string |
mcp_connection_nonblocking | MCP_CONNECTION_NONBLOCKING | string |
mcp_remote_server_connection_batch_size | MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE | string |
mcp_server_connection_batch_size | MCP_SERVER_CONNECTION_BATCH_SIZE | string |
claude_code_max_tool_use_concurrency | CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY | string |
bash_default_timeout_ms | BASH_DEFAULT_TIMEOUT_MS | string |
bash_max_timeout_ms | BASH_MAX_TIMEOUT_MS | string |
bash_max_output_length | BASH_MAX_OUTPUT_LENGTH | string |
task_max_output_length | TASK_MAX_OUTPUT_LENGTH | string |
claude_code_use_powershell_tool | CLAUDE_CODE_USE_POWERSHELL_TOOL | string |
claude_code_mcp_allowlist_env | CLAUDE_CODE_MCP_ALLOWLIST_ENV | bool |
enable_claudeai_mcp_servers | ENABLE_CLAUDEAI_MCP_SERVERS | string |
claude_code_use_native_file_search | CLAUDE_CODE_USE_NATIVE_FILE_SEARCH | bool |
use_builtin_ripgrep | USE_BUILTIN_RIPGREP | string |
slash_command_tool_char_budget | SLASH_COMMAND_TOOL_CHAR_BUDGET | string |
| YAML field | Env var | Type |
disable_prompt_caching | DISABLE_PROMPT_CACHING | bool |
disable_prompt_caching_haiku | DISABLE_PROMPT_CACHING_HAIKU | bool |
disable_prompt_caching_opus | DISABLE_PROMPT_CACHING_OPUS | bool |
disable_prompt_caching_sonnet | DISABLE_PROMPT_CACHING_SONNET | bool |
enable_prompt_caching_1h | ENABLE_PROMPT_CACHING_1H | bool |
force_prompt_caching_5m | FORCE_PROMPT_CACHING_5M | bool |
| YAML field | Env var | Type |
claude_code_plugin_cache_dir | CLAUDE_CODE_PLUGIN_CACHE_DIR | string |
claude_code_plugin_git_timeout_ms | CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS | string |
claude_code_plugin_seed_dir | CLAUDE_CODE_PLUGIN_SEED_DIR | string |
claude_code_disable_official_marketplace_autoinstall | CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL | bool |
claude_code_plugin_keep_marketplace_on_failure | CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE | bool |
claude_code_sync_plugin_install | CLAUDE_CODE_SYNC_PLUGIN_INSTALL | bool |
claude_code_sync_plugin_install_timeout_ms | CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS | string |
claude_code_enable_background_plugin_refresh | CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH | bool |
force_autoupdate_plugins | FORCE_AUTOUPDATE_PLUGINS | bool |
claude_code_experimental_agent_teams | CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS | bool |
claude_agent_sdk_disable_builtin_agents | CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS | bool |
claude_agent_sdk_mcp_no_prefix | CLAUDE_AGENT_SDK_MCP_NO_PREFIX | bool |
claude_code_sessionend_hooks_timeout_ms | CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS | string |
claude_code_fork_subagent | CLAUDE_CODE_FORK_SUBAGENT | bool |
claude_async_agent_stall_timeout_ms | CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS | string |
claude_auto_background_tasks | CLAUDE_AUTO_BACKGROUND_TASKS | bool |
claude_code_disable_background_tasks | CLAUDE_CODE_DISABLE_BACKGROUND_TASKS | bool |
claude_code_new_init | CLAUDE_CODE_NEW_INIT | bool |
claude_code_disable_policy_skills | CLAUDE_CODE_DISABLE_POLICY_SKILLS | bool |
| YAML field | Env var | Type |
claude_code_enable_telemetry | CLAUDE_CODE_ENABLE_TELEMETRY | bool |
disable_telemetry | DISABLE_TELEMETRY | bool |
disable_error_reporting | DISABLE_ERROR_REPORTING | bool |
do_not_track | DO_NOT_TRACK | bool |
otel_log_user_prompts | OTEL_LOG_USER_PROMPTS | bool |
otel_log_tool_content | OTEL_LOG_TOOL_CONTENT | bool |
otel_log_tool_details | OTEL_LOG_TOOL_DETAILS | bool |
otel_log_raw_api_bodies | OTEL_LOG_RAW_API_BODIES | string |
otel_metrics_include_account_uuid | OTEL_METRICS_INCLUDE_ACCOUNT_UUID | string |
otel_metrics_include_session_id | OTEL_METRICS_INCLUDE_SESSION_ID | string |
otel_metrics_include_version | OTEL_METRICS_INCLUDE_VERSION | string |
claude_code_otel_flush_timeout_ms | CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS | string |
claude_code_otel_headers_helper_debounce_ms | CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS | string |
claude_code_otel_shutdown_timeout_ms | CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS | string |
otel_exporter_otlp_endpoint | OTEL_EXPORTER_OTLP_ENDPOINT | string |
otel_exporter_otlp_headers | OTEL_EXPORTER_OTLP_HEADERS | string |
otel_exporter_otlp_protocol | OTEL_EXPORTER_OTLP_PROTOCOL | string |
otel_logs_exporter | OTEL_LOGS_EXPORTER | string |
otel_metrics_exporter | OTEL_METRICS_EXPORTER | string |
otel_metric_export_interval | OTEL_METRIC_EXPORT_INTERVAL | string |
otel_resource_attributes | OTEL_RESOURCE_ATTRIBUTES | string |
| YAML field | Env var | Type |
claude_code_disable_nonessential_traffic | CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC | bool |
disable_autoupdater | DISABLE_AUTOUPDATER | bool |
disable_updates | DISABLE_UPDATES | bool |
disable_feedback_command | DISABLE_FEEDBACK_COMMAND | bool |
claude_code_disable_feedback_survey | CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY | bool |
claude_code_skip_prompt_history | CLAUDE_CODE_SKIP_PROMPT_HISTORY | bool |
claude_code_subprocess_env_scrub | CLAUDE_CODE_SUBPROCESS_ENV_SCRUB | bool |
claude_code_script_caps | CLAUDE_CODE_SCRIPT_CAPS | string |
claude_code_disable_claude_mds | CLAUDE_CODE_DISABLE_CLAUDE_MDS | bool |
claude_code_disable_auto_memory | CLAUDE_CODE_DISABLE_AUTO_MEMORY | string |
claude_code_disable_cron | CLAUDE_CODE_DISABLE_CRON | bool |
claude_code_disable_file_checkpointing | CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING | bool |
claude_code_disable_fast_mode | CLAUDE_CODE_DISABLE_FAST_MODE | bool |
claude_code_disable_experimental_betas | CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS | bool |
claude_code_simple | CLAUDE_CODE_SIMPLE | bool |
claude_code_simple_system_prompt | CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT | bool |
claude_code_resume_interrupted_turn | CLAUDE_CODE_RESUME_INTERRUPTED_TURN | bool |
claude_code_exit_after_stop_delay | CLAUDE_CODE_EXIT_AFTER_STOP_DELAY | string |
claude_code_perforce_mode | CLAUDE_CODE_PERFORCE_MODE | bool |
claude_code_disable_git_instructions | CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS | bool |
disable_cost_warnings | DISABLE_COST_WARNINGS | bool |
disable_doctor_command | DISABLE_DOCTOR_COMMAND | bool |
disable_extra_usage_command | DISABLE_EXTRA_USAGE_COMMAND | bool |
disable_install_github_app_command | DISABLE_INSTALL_GITHUB_APP_COMMAND | bool |
disable_login_command | DISABLE_LOGIN_COMMAND | bool |
disable_logout_command | DISABLE_LOGOUT_COMMAND | bool |
disable_upgrade_command | DISABLE_UPGRADE_COMMAND | bool |
disable_installation_checks | DISABLE_INSTALLATION_CHECKS | bool |
disable_bug_command | DISABLE_BUG_COMMAND | bool |
disable_growthbook | DISABLE_GROWTHBOOK | bool |
max_structured_output_retries | MAX_STRUCTURED_OUTPUT_RETRIES | string |
claude_code_enable_tasks | CLAUDE_CODE_ENABLE_TASKS | bool |
claude_code_task_list_id | CLAUDE_CODE_TASK_LIST_ID | string |
claude_code_enable_away_summary | CLAUDE_CODE_ENABLE_AWAY_SUMMARY | string |
claude_code_enable_prompt_suggestion | CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION | string |
is_demo | IS_DEMO | bool |
ccr_force_bundle | CCR_FORCE_BUNDLE | bool |
claude_code_additional_directories_claude_md | CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD | bool |
claude_bash_maintain_project_working_dir | CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR | bool |
| YAML field | Env var | Type |
claude_code_no_flicker | CLAUDE_CODE_NO_FLICKER | bool |
claude_code_disable_alternate_screen | CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN | bool |
claude_code_disable_virtual_scroll | CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL | bool |
claude_code_disable_mouse | CLAUDE_CODE_DISABLE_MOUSE | bool |
claude_code_scroll_speed | CLAUDE_CODE_SCROLL_SPEED | string |
claude_code_force_sync_output | CLAUDE_CODE_FORCE_SYNC_OUTPUT | bool |
claude_code_tmux_truecolor | CLAUDE_CODE_TMUX_TRUECOLOR | bool |
claude_code_syntax_highlight | CLAUDE_CODE_SYNTAX_HIGHLIGHT | string |
claude_code_accessibility | CLAUDE_CODE_ACCESSIBILITY | bool |
claude_code_hide_cwd | CLAUDE_CODE_HIDE_CWD | bool |
claude_code_disable_terminal_title | CLAUDE_CODE_DISABLE_TERMINAL_TITLE | bool |
claude_code_disable_attachments | CLAUDE_CODE_DISABLE_ATTACHMENTS | bool |
claude_code_native_cursor | CLAUDE_CODE_NATIVE_CURSOR | bool |
| YAML field | Env var | Type |
claude_code_shell | CLAUDE_CODE_SHELL | string |
claude_code_shell_prefix | CLAUDE_CODE_SHELL_PREFIX | string |
claude_code_git_bash_path | CLAUDE_CODE_GIT_BASH_PATH | string |
claude_code_tmpdir | CLAUDE_CODE_TMPDIR | string |
claude_env_file | CLAUDE_ENV_FILE | string |
claude_code_package_manager_auto_update | CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE | bool |
claude_code_debug_logs_dir | CLAUDE_CODE_DEBUG_LOGS_DIR | string |
claude_code_debug_log_level | CLAUDE_CODE_DEBUG_LOG_LEVEL | string |
claude_code_glob_hidden | CLAUDE_CODE_GLOB_HIDDEN | string |
claude_code_glob_no_ignore | CLAUDE_CODE_GLOB_NO_IGNORE | string |
claude_code_glob_timeout_seconds | CLAUDE_CODE_GLOB_TIMEOUT_SECONDS | string |
| YAML field | Env var | Type |
claude_code_auto_connect_ide | CLAUDE_CODE_AUTO_CONNECT_IDE | string |
claude_code_ide_host_override | CLAUDE_CODE_IDE_HOST_OVERRIDE | string |
claude_code_ide_skip_auto_install | CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL | bool |
claude_code_ide_skip_valid_check | CLAUDE_CODE_IDE_SKIP_VALID_CHECK | bool |
| YAML field | Env var | Type |
claude_remote_control_session_name_prefix | CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX | string |
| YAML field | Env var | Type |
vertex_region_claude_3_5_haiku | VERTEX_REGION_CLAUDE_3_5_HAIKU | string |
vertex_region_claude_3_5_sonnet | VERTEX_REGION_CLAUDE_3_5_SONNET | string |
vertex_region_claude_3_7_sonnet | VERTEX_REGION_CLAUDE_3_7_SONNET | string |
vertex_region_claude_4_0_opus | VERTEX_REGION_CLAUDE_4_0_OPUS | string |
vertex_region_claude_4_0_sonnet | VERTEX_REGION_CLAUDE_4_0_SONNET | string |
vertex_region_claude_4_1_opus | VERTEX_REGION_CLAUDE_4_1_OPUS | string |
vertex_region_claude_4_5_opus | VERTEX_REGION_CLAUDE_4_5_OPUS | string |
vertex_region_claude_4_5_sonnet | VERTEX_REGION_CLAUDE_4_5_SONNET | string |
vertex_region_claude_4_6_opus | VERTEX_REGION_CLAUDE_4_6_OPUS | string |
vertex_region_claude_4_6_sonnet | VERTEX_REGION_CLAUDE_4_6_SONNET | string |
vertex_region_claude_4_7_opus | VERTEX_REGION_CLAUDE_4_7_OPUS | string |
vertex_region_claude_haiku_4_5 | VERTEX_REGION_CLAUDE_HAIKU_4_5 | string |
These are set automatically by Claude Code. Including them in your config is harmless but pointless.
| YAML field | Env var | Type |
claudecode | CLAUDECODE | string |
claude_code_remote | CLAUDE_CODE_REMOTE | string |
claude_code_remote_session_id | CLAUDE_CODE_REMOTE_SESSION_ID | string |
claude_code_session_id | CLAUDE_CODE_SESSION_ID | string |
claude_code_team_name | CLAUDE_CODE_TEAM_NAME | string |
claude_code_provider_managed_by_host | CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST | string |
| YAML field | Env var | Type | Note |
anthropic_small_fast_model | ANTHROPIC_SMALL_FAST_MODEL | string | Use anthropic_default_haiku_model |
enable_prompt_caching_1h_bedrock | ENABLE_PROMPT_CACHING_1H_BEDROCK | bool | Use enable_prompt_caching_1h |
The env: map lets you set arbitrary environment variables that don’t have a named field:
profiles:
my-profile:
anthropic_base_url: https://example.com
env:
# Standard OTel variables, custom provider settings, etc.
OTEL_SERVICE_NAME: "my-claude-code"
MY_CUSTOM_VAR: "value"
Global env: at the top level applies to all profiles:
env:
DISABLE_TELEMETRY: "1"
profiles:
default: {}
deepseek:
anthropic_base_url: https://api.deepseek.com/anthropic