0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

codex cli 0.134.0 でもollama+local llm を使いたい

0
Last updated at Posted at 2026-05-28

はじめに

codex cli が 0.134.0 にバージョンアップしたのに伴い,いままで使っていた設定が使えなくなりました.検証の結果,とりあえず動かせるようになったので備忘録を残します.

環境

  • Ubuntu 24.04 (クライアント側)
    • Codex CLI 0.134.0
  • DGX spark (ホスト側)
    • Ollama 0.24.0

従来の方法

~/.codex/config.toml に

  • model.roviders.xxx
  • profiles.xxx
    を記述していました.例えば以下のような感じ
config.toml
[model_providers.ollama_remote_dgx]
name = "ollama_remote_dgx"
base_url = "http://<OLLAMA_HOST>:11434/v1"

[profiles.dgx_qwen122]
model_provider = "ollama_remote_dgx"
model = "qwen3.5:122b"
model_reasoning_effort = "medium"

0.134.0 での方法

~/.codex/config.toml に model_providers のみ追記します.

config.toml
[model_providers.ollama_remote_dgx]
name = "ollama_remote_dgx"
base_url = "http://<OLLAMA_HOST>:11434/v1"

profiles.xxx は別の toml ファイルとして保存します.保存場所は ~/.codex/ です.

dgx_qwen122.config.toml
model_provider = "ollama_remote_dgx"
model = "qwen3.5:122b"
model_reasoning_effort = "medium"

適当な場所で codex を起動します.

codex --profile dgx_qwen122

以下のような画面が出てきたら成功です.

╭───────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.134.0)                        │
│                                                   │
│ model:     qwen3.5:122b medium   /model to change │
│ directory: ~/workspace/codex_explanation          │
╰───────────────────────────────────────────────────╯

  Tip: New Build faster with Codex.

参考文献

Appendix

⚠ Model metadata for `qwen3.5:122b` not found. Defaulting to fallback metadata;
  this can degrade performance and cause issues.

という warning が発生しています.謎.
issue は報告されているみたい.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?