Set configuration values for CodeWiki. API keys are stored securely in your system keychain: • macOS: Keychain Access • Windows: Credential Manager • Linux: Secret Service (GNOME Keyring, KWallet) Examples: \b # Set all configuration (API mode)
(
api_key: Optional[str],
base_url: Optional[str],
main_model: Optional[str],
cluster_model: Optional[str],
fallback_model: Optional[str],
max_tokens: Optional[int],
max_token_per_module: Optional[int],
max_token_per_leaf_module: Optional[int],
max_depth: Optional[int],
provider: Optional[str] = None,
aws_region: Optional[str] = None,
api_version: Optional[str] = None,
azure_deployment: Optional[str] = None
)
| 112 | help="Azure OpenAI deployment name" |
| 113 | ) |
| 114 | def config_set( |
| 115 | api_key: Optional[str], |
| 116 | base_url: Optional[str], |
| 117 | main_model: Optional[str], |
| 118 | cluster_model: Optional[str], |
| 119 | fallback_model: Optional[str], |
| 120 | max_tokens: Optional[int], |
| 121 | max_token_per_module: Optional[int], |
| 122 | max_token_per_leaf_module: Optional[int], |
| 123 | max_depth: Optional[int], |
| 124 | provider: Optional[str] = None, |
| 125 | aws_region: Optional[str] = None, |
| 126 | api_version: Optional[str] = None, |
| 127 | azure_deployment: Optional[str] = None |
| 128 | ): |
| 129 | """ |
| 130 | Set configuration values for CodeWiki. |
| 131 | |
| 132 | API keys are stored securely in your system keychain: |
| 133 | • macOS: Keychain Access |
| 134 | • Windows: Credential Manager |
| 135 | • Linux: Secret Service (GNOME Keyring, KWallet) |
| 136 | |
| 137 | Examples: |
| 138 | |
| 139 | \b |
| 140 | # Set all configuration (API mode) |
| 141 | $ codewiki config set --api-key sk-abc123 --base-url https://api.anthropic.com \\ |
| 142 | --main-model claude-sonnet-4 --cluster-model claude-sonnet-4 --fallback-model glm-4p5 |
| 143 | |
| 144 | \b |
| 145 | # Atlas Cloud (OpenAI-compatible) — base URL auto-set, |
| 146 | # API key read from ATLASCLOUD_API_KEY if --api-key is omitted |
| 147 | $ codewiki config set --provider atlas-cloud --main-model <atlas-model> --cluster-model <atlas-model> |
| 148 | |
| 149 | \b |
| 150 | # Subscription mode (Claude Code) — no API key needed, |
| 151 | # authenticate via 'claude login' on the host first |
| 152 | $ codewiki config set --provider claude-code --main-model claude-sonnet-4-5 |
| 153 | |
| 154 | \b |
| 155 | # Subscription mode (Codex) |
| 156 | $ codewiki config set --provider codex --main-model gpt-5.2-codex |
| 157 | |
| 158 | \b |
| 159 | # Update only API key |
| 160 | $ codewiki config set --api-key sk-new-key |
| 161 | |
| 162 | \b |
| 163 | # Set max tokens for LLM response |
| 164 | $ codewiki config set --max-tokens 16384 |
| 165 | |
| 166 | \b |
| 167 | # Set all max token settings |
| 168 | $ codewiki config set --max-tokens 32768 --max-token-per-module 40000 --max-token-per-leaf-module 20000 |
| 169 | |
| 170 | \b |
| 171 | # Set max depth for hierarchical decomposition |
nothing calls this directly
no test coverage detected