---
title: "#ai-relay articles | Hashnode"
description: "Explore 18 articles tagged #ai-relay on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/ai-relay"
---

Tag

# #ai-relay

18 posts · 0 followers

[江流石](https://hashnode.com/@jliushi) · [Oct 15](https://hashnode.com/posts/claude-code-on-wsl-put-relay-env-vars-in-the-linux-shell-not-windows/6ad0d6771b1aaeb205d2d009)

### [Claude Code on WSL: Put Relay Env Vars in the Linux Shell, Not Windows](https://jliushi.hashnode.dev/claude-code-on-wsl-put-relay-env-vars-in-the-linux-shell-not-windows?utm_source=hashnode&utm_medium=feed)

WSL runs Claude Code inside Linux. Relay env vars set in Windows PowerShell never reach that process. 1. Open a WSL terminal Ubuntu (or your distro) from Windows Terminal — not PowerShell alone. 2. Se

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/claude-code-on-wsl-put-relay-env-vars-in-the-linux-shell-not-windows?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 15](https://hashnode.com/posts/build-a-tiny-python-to-do-cli-with-claude-code-on-free-sign-up-credit/6ad09c1a4bb6edc243daf39e)

### [Build a Tiny Python To-Do CLI with Claude Code on Free Sign-Up Credit](https://jliushi.hashnode.dev/build-a-tiny-python-to-do-cli-with-claude-code-on-free-sign-up-credit?utm_source=hashnode&utm_medium=feed)

A small first project to test your relay setup without burning much free sign-up credit. Before you start Claude Code is pointed at a relay with ANTHROPIC\_BASE\_URL and ANTHROPIC\_AUTH\_TOKEN. You open

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/build-a-tiny-python-to-do-cli-with-claude-code-on-free-sign-up-credit?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 14](https://hashnode.com/posts/codex-ignores-your-key-until-you-export-relay-api-key/6acf852776050da0a25b6013)

### [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

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/codex-ignores-your-key-until-you-export-relay-api-key?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 14](https://hashnode.com/posts/codex-cli-on-macos-with-a-relay-config-toml-and-zshrc-step-by-step/6acf4a9a0fdbaacb6461e3a0)

### [Codex CLI on macOS with a Relay: config.toml and zshrc, Step by Step](https://jliushi.hashnode.dev/codex-cli-on-macos-with-a-relay-config-toml-and-zshrc-step-by-step?utm_source=hashnode&utm_medium=feed)

This is the macOS version. You need Codex CLI installed and a relay key. 1. Pick a relay that supports Codex On the tested list, AgentRouter is marked for both Claude Code and Codex. Relays marked Cla

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/codex-cli-on-macos-with-a-relay-config-toml-and-zshrc-step-by-step?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 13](https://hashnode.com/posts/401-right-after-pasting-your-relay-key-check-for-a-missing-character/6acdbf9882940c7bcbe6979f)

### [401 Right After Pasting Your Relay Key? Check for a Missing Character](https://jliushi.hashnode.dev/401-right-after-pasting-your-relay-key-check-for-a-missing-character?utm_source=hashnode&utm_medium=feed)

You just set up Claude Code with a relay. First message: 401 Unauthorized. Before anything else, check the key itself. Missing the last character When you select a long key by hand, it is easy to miss

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/401-right-after-pasting-your-relay-key-check-for-a-missing-character?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 12](https://hashnode.com/posts/wrong-model-name-in-claude-code-copy-it-exactly-from-the-relay/6acce584a3708f66bb3fd91b)

### [Wrong Model Name in Claude Code? Copy It Exactly From the Relay](https://jliushi.hashnode.dev/wrong-model-name-in-claude-code-copy-it-exactly-from-the-relay?utm_source=hashnode&utm_medium=feed)

Claude Code often can't pull the model list from a relay. So you type the model name yourself. One wrong character and requests fail. Where to get the name Open the relay's model list (usually on the

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/wrong-model-name-in-claude-code-copy-it-exactly-from-the-relay?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 12](https://hashnode.com/posts/set-up-codex-cli-with-a-relay-on-windows-config-toml-setx/6acca684739d60d922a06690)

### [Set Up Codex CLI with a Relay on Windows (config.toml + setx)](https://jliushi.hashnode.dev/set-up-codex-cli-with-a-relay-on-windows-config-toml-setx?utm_source=hashnode&utm_medium=feed)

This is the Windows version of the Codex relay setup. You need a relay that works with Codex, plus its address and key. 1. Pick a relay that supports Codex Many relays are Claude Code only. On the cur

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/set-up-codex-cli-with-a-relay-on-windows-config-toml-setx?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 12](https://hashnode.com/posts/model-list-won-t-load-in-claude-code-set-anthropic-model-by-hand/6acc6ea8b582b5e3c352747d)

### [Model List Won't Load in Claude Code? Set ANTHROPIC\_MODEL by Hand](https://jliushi.hashnode.dev/model-list-won-t-load-in-claude-code-set-anthropic-model-by-hand?utm_source=hashnode&utm_medium=feed)

Claude Code can't pull the model list from your relay. That's common. You don't need the list to run — set the model name yourself. Copy the exact string Open the relay's own model list and copy the n

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/model-list-won-t-load-in-claude-code-set-anthropic-model-by-hand?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 12](https://hashnode.com/posts/codex-relay-config-should-wire-api-be-chat-or-responses/6acc375da8662b5ce37f908d)

### [Codex Relay Config: Should wire\_api Be chat or responses?](https://jliushi.hashnode.dev/codex-relay-config-should-wire-api-be-chat-or-responses?utm_source=hashnode&utm_medium=feed)

In the Codex config for a relay there's one line people get stuck on: wire\_api. Start with chat model = "gpt-5.6" model\_provider = "relay" \[model\_providers.relay\] name = "relay" base\_url = "https://y

1 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/codex-relay-config-should-wire-api-be-chat-or-responses?utm_source=hashnode&utm_medium=feed)

[江流石](https://hashnode.com/@jliushi) · [Oct 11](https://hashnode.com/posts/claude-code-relay-setup-on-ubuntu-and-wsl-bashrc-step-by-step/6acb8ec5bf049e698efe2488)

### [Claude Code Relay Setup on Ubuntu and WSL (bashrc, Step by Step)](https://jliushi.hashnode.dev/claude-code-relay-setup-on-ubuntu-and-wsl-bashrc-step-by-step?utm_source=hashnode&utm_medium=feed)

The Claude Code relay guides online are mostly written for macOS. If you're on Ubuntu, Debian or WSL on Windows, here are the exact steps. 1. Open your shell profile nano ~/.bashrc If you use zsh, ope

2 min read · [jliushi.hashnode.dev](https://jliushi.hashnode.dev/claude-code-relay-setup-on-ubuntu-and-wsl-bashrc-step-by-step?utm_source=hashnode&utm_medium=feed)
