Migrate Provider Configs To Profiles · feiskyer/codex-settings@5990765 · GitHub
Skip to content

Commit 5990765

Browse files
committed
Migrate Provider Configs To Profiles
1 parent f90861d commit 5990765

10 files changed

Lines changed: 61 additions & 157 deletions

‎README.md‎

Lines changed: 15 additions & 25 deletions

‎azure.config.toml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Azure OpenAI profile.
2+
# Set AZURE_OPENAI_API_KEY, then run `codex --profile azure`.
3+
model = "gpt-5.6-sol"
4+
model_provider = "azure"
5+
6+
[model_providers.azure]
7+
name = "Azure"
8+
base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai/v1"
9+
env_key = "AZURE_OPENAI_API_KEY"
10+
env_key_instructions = "Set AZURE_OPENAI_API_KEY in your environment"
11+
wire_api = "responses"
12+
13+
# You can also set the api-key in config file if don't want to set the env everytime
14+
# [model_providers.azure.http_headers]
15+
# api-key = "<YOUR_AZURE_OPENAI_API_KEY>"

‎chatgpt.config.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ChatGPT subscription profile.
2+
# Run `codex login`, then use `codex --profile chatgpt`.
3+
model = "gpt-5.6-sol"
4+
model_provider = "openai"

‎config.toml‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Codex CLI Configuration
22
# This configuration uses copilot-gateway as the model provider gateway
3-
model = "gpt-5.5"
3+
model = "gpt-5.6-sol"
44
model_provider = "github"
5-
model_reasoning_effort = "xhigh"
5+
model_reasoning_effort = "medium"
66
model_verbosity = "medium"
77
web_search = "live"
88
personality = "friendly"
@@ -28,18 +28,6 @@ memories = true
2828
goals = true
2929
hooks = true
3030

31-
[profiles.github]
32-
model = "gpt-5.5"
33-
model_provider = "github"
34-
model_reasoning_effort = "xhigh"
35-
36-
[profiles.github.features]
37-
terminal_resize_reflow = true
38-
memories = true
39-
external_migration = false
40-
prevent_idle_sleep = true
41-
image_generation = false
42-
4331
# Model providers (copilot-gateway as Github Copilot proxy)
4432
[model_providers.github]
4533
name = "Github"

‎configs/azure.toml‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎configs/chatgpt.toml‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎configs/github-copilot.toml‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎configs/openrouter.toml‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎github-copilot.config.toml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GitHub Copilot through LiteLLM profile.
2+
# Start LiteLLM on localhost:4000, then run `codex --profile github-copilot`.
3+
model = "gpt-5.6-sol"
4+
model_provider = "github"
5+
6+
[model_providers.github]
7+
name = "GitHub Copilot via LiteLLM"
8+
base_url = "http://localhost:4000"
9+
http_headers = { "Authorization" = "Bearer sk-dummy" }
10+
wire_api = "responses"

‎openrouter.config.toml‎

Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)