feat: add codex profile config

This commit is contained in:
banteg
2025-12-29 16:31:29 +04:00
parent caa9f4f99d
commit ed27ecd3c9
5 changed files with 67 additions and 67 deletions
+18 -1
View File
@@ -46,6 +46,23 @@ chat_id = 123456789
The bridge only accepts messages where the chat ID equals the sender ID and both match `chat_id` (i.e., private chat with that user).
When you pass `--cd`, Takopi looks for `codex/takopi.toml` under that directory first.
### Codex Profile (Optional)
Create a Codex profile in `~/.codex/config.toml`:
```toml
[profiles.takopi]
model = "gpt-4.1"
```
Then run Takopi with:
```bash
uv run takopi --profile takopi
```
### Running
```bash
@@ -59,7 +76,7 @@ uv run takopi
| `--final-notify` / `--no-final-notify` | `--final-notify` | Send final response as new message (vs. edit) |
| `--debug` / `--no-debug` | `--no-debug` | Enable verbose logging |
| `--cd PATH` | cwd | Working directory for Codex |
| `--model NAME` | (codex default) | Model to use |
| `--profile NAME` | (codex default) | Codex profile name |
## Usage