﻿---
title: "通过 Bifrost 连接模型服务"
filename: "~/.codex/bifrost.config.toml"
canonical: /templates/bifrost-codex-gateway/
---

# 通过 Bifrost 连接模型服务

用户层 [model_providers.bifrost]，base_url 是 http://localhost:8080/openai/v1，env_key = OPENAI_API_KEY，wire_api = responses，supports_websockets = false。再用 ~/.codex/bifrost.config.toml 和 --profile bifrost。

```
model = "openai/gpt-5.4"
model_provider = "bifrost"

[model_providers.bifrost]
name = "Bifrost"
base_url = "http://localhost:8080/openai/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
supports_websockets = false

```
