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 | @click.option( |
| 115 | "--use-gitignore/--no-gitignore", |
| 116 | default=None, |
| 117 | help="Apply Git ignore rules during repository analysis (default: enabled)", |
| 118 | ) |
| 119 | @click.option( |
| 120 | "--prompt-caching/--no-prompt-caching", |
| 121 | default=None, |
| 122 | help="Add prompt-cache breakpoints to agentic LLM calls; auto-falls back to " |
| 123 | "normal calls if the provider rejects them (default: enabled)", |
| 124 | ) |
| 125 | def config_set( |
| 126 | api_key: Optional[str], |
| 127 | base_url: Optional[str], |
| 128 | main_model: Optional[str], |
| 129 | cluster_model: Optional[str], |
| 130 | fallback_model: Optional[str], |
| 131 | max_tokens: Optional[int], |
| 132 | max_token_per_module: Optional[int], |
| 133 | max_token_per_leaf_module: Optional[int], |
| 134 | max_depth: Optional[int], |
| 135 | provider: Optional[str] = None, |
| 136 | aws_region: Optional[str] = None, |
| 137 | api_version: Optional[str] = None, |
| 138 | azure_deployment: Optional[str] = None, |
| 139 | use_gitignore: Optional[bool] = None, |
| 140 | prompt_caching: Optional[bool] = None, |
| 141 | ): |
| 142 | """ |
| 143 | Set configuration values for CodeWiki. |
| 144 | |
| 145 | API keys are stored securely in your system keychain: |
| 146 | • macOS: Keychain Access |
| 147 | • Windows: Credential Manager |
| 148 | • Linux: Secret Service (GNOME Keyring, KWallet) |
| 149 | |
| 150 | Examples: |
| 151 | |
| 152 | \b |
| 153 | # Set all configuration (API mode) |
| 154 | $ codewiki config set --api-key sk-abc123 --base-url https://api.anthropic.com \\ |
| 155 | --main-model claude-sonnet-4 --cluster-model claude-sonnet-4 --fallback-model glm-4p5 |
| 156 | |
| 157 | \b |
| 158 | # Atlas Cloud (OpenAI-compatible) — base URL auto-set, |
| 159 | # API key read from ATLASCLOUD_API_KEY if --api-key is omitted |
| 160 | $ codewiki config set --provider atlas-cloud --main-model <atlas-model> --cluster-model <atlas-model> |
| 161 | |
| 162 | \b |
| 163 | # Subscription mode (Claude Code) — no API key needed, |
| 164 | # authenticate via 'claude login' on the host first |
| 165 | $ codewiki config set --provider claude-code --main-model claude-sonnet-4-5 |
| 166 | |
| 167 | \b |
| 168 | # Subscription mode (Codex) |
| 169 | $ codewiki config set --provider codex --main-model gpt-5.2-codex |
| 170 | |
| 171 | \b |
nothing calls this directly
no test coverage detected