mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 12:08:11 +00:00
Replace loopback trust with an internal process credential supplied automatically to local account-model calls. Keep configured external proxy tokens and deny tokenless requests from every source address. Finalize local proxy credentials after model defaults are merged so legacy stored keys, inline keys, additional parameters and auth headers work without changing saved settings or account connections. Limit replacement to this process's loopback WebUI port and provider proxy path, preserving explicit credentials for other endpoints. Keep the internal credential in the stable framework runtime module so plugin reloads do not invalidate existing model clients. No saved credential or configuration migration is required. Isolate proxy tests from saved accounts and plugin toggles. Cover all account providers, disconnected state, custom ports, external endpoint credentials, public hostnames, forwarded headers, OAuth callback accessibility and real SDK HTTP streaming. Document the intentional requirement for external clients that previously relied on tokenless loopback trust. Validation: 643 focused framework tests passed with 3 expected failures for two pre-existing backup/A2A issues, plus 52 isolated host checks and the OAuth UI regression. A live Codex Responses call using the existing account after plugin reload returned OK; saved credentials and configuration remained byte-for-byte unchanged.
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# Generic OAuth connection settings.
|
|
codex:
|
|
enabled: true
|
|
|
|
# Empty stores credentials in Agent Zero's private OAuth directory.
|
|
# Never share a rotating refresh-token file with Codex CLI or another client.
|
|
auth_file_path: ""
|
|
|
|
issuer: "https://auth.openai.com"
|
|
token_url: "https://auth.openai.com/oauth/token"
|
|
client_id: "app_EMoamEEZ73f0CkXaXp7hrann"
|
|
scopes:
|
|
- openid
|
|
- profile
|
|
- email
|
|
- offline_access
|
|
- api.connectors.read
|
|
- api.connectors.invoke
|
|
|
|
open_browser_from_server: false
|
|
forced_workspace_id: ""
|
|
|
|
upstream_base_url: "https://chatgpt.com/backend-api/codex"
|
|
codex_version: "0.166.0"
|
|
models: []
|
|
request_timeout_seconds: 120
|
|
|
|
# Defaults for Codex Responses requests. Explicit model/request values win.
|
|
reasoning_effort: "high"
|
|
reasoning_summary: "auto"
|
|
text_verbosity: "medium"
|
|
|
|
# The OpenAI-compatible wrapper is mounted at /oauth/codex/v1.
|
|
# Agent Zero authenticates its internal calls automatically; external clients must supply a token.
|
|
# The legacy require_proxy_token setting is retained for saved-config compatibility; loopback is never sufficient authorization.
|
|
proxy_base_path: "/oauth/codex"
|
|
callback_path: "/auth/callback"
|
|
require_proxy_token: false
|
|
proxy_token: ""
|
|
|
|
github_copilot:
|
|
enabled: true
|
|
enterprise_domain: ""
|
|
|
|
gemini_api:
|
|
enabled: true
|
|
client_id: ""
|
|
client_secret: ""
|
|
quota_project_id: ""
|
|
scopes:
|
|
- openid
|
|
- email
|
|
- profile
|
|
- https://www.googleapis.com/auth/cloud-platform
|
|
- https://www.googleapis.com/auth/generative-language.retriever
|
|
api_base_url: "https://generativelanguage.googleapis.com/v1beta/openai"
|
|
proxy_base_path: "/oauth/gemini-api"
|
|
callback_path: "/oauth/gemini-api/callback"
|
|
|
|
xai_grok:
|
|
enabled: true
|