Codex
Codex CLI, ڈیسک ٹاپ ایپ اور IDE ایکسٹینشن ایک ہی کنفیگ شیئر کرتے ہیں؛ کلید ماحولیاتی متغیر سے پڑھی جاتی ہے۔
- API کلید (Bearer)
- OAuth سائن ان
کلید کو ماحولیاتی متغیر میں رکھیں
· macOS / Linuxexport AICHARGED_API_KEY="<API_KEY>"
export لائن کو اپنے شیل پروفائل (e.g. ~/.zshrc) میں شامل کریں تاکہ نئے ٹرمینلز بھی کلید دیکھ سکیں۔
کلید کو ماحولیاتی متغیر میں رکھیں — Windows (PowerShell)
· Windows[Environment]::SetEnvironmentVariable("AICHARGED_API_KEY", "<API_KEY>", "User")
ایک کمانڈ
تجویز کردہcodex mcp add aicharged --url https://aicharged.io/api/v1/mcp --bearer-token-env-var AICHARGED_API_KEY
کنفیگ فائل
~/.codex/config.toml
[mcp_servers.aicharged]
url = "https://aicharged.io/api/v1/mcp"
bearer_token_env_var = "AICHARGED_API_KEY"
ان لائن کلید کے ساتھ کنفیگ
~/.codex/config.toml
[mcp_servers.aicharged]
url = "https://aicharged.io/api/v1/mcp"
http_headers = { "Authorization" = "Bearer <API_KEY>" }
OAuth سے سائن ان کریں
codex mcp add aicharged --url https://aicharged.io/api/v1/mcp
codex mcp login aicharged