---
title: "Discussion on \"Codex Ignores Your Key Until You Export RELAY_API_KEY\" | Hashnode"
description: "Discussion on \"Codex Ignores Your Key Until You Export RELAY_API_KEY\". This is for Codex CLI with a relay. You put env_key = \"RELAY_API_KEY\" in config.toml. Codex still acts like you have no key.\nWhat env_key actually does\nIt only names the environment variable. It does"
url: "https://hashnode.com/posts/codex-ignores-your-key-until-you-export-relay-api-key/6acf852776050da0a25b6013"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Codex Ignores Your Key Until You Export RELAY\_API\_KEY](https://jliushi.hashnode.dev/codex-ignores-your-key-until-you-export-relay-api-key?utm_source=hashnode&utm_medium=feed)

This is for Codex CLI with a relay. You put env\_key = "RELAY\_API\_KEY" in config.toml. Codex still acts like you have no key. What env\_key actually does It only names the environment variable. It does

Oct 14 · 1 min read · jliushi.hashnode.dev  
Read the article

-   [#codex](https://hashnode.com/tag/codex)
-   [#ai-relay](https://hashnode.com/tag/ai-relay)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#env](https://hashnode.com/tag/env)

## Written by

[江流石](https://hashnode.com/@jliushi)

@jliushi

  
[View profile](https://hashnode.com/@jliushi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
