Windows
Install the deeprelay CLI on Windows with PowerShell, sign in, set your API key for SDKs and coding agents, and see what is not supported on Windows yet.
The deeprelay CLI runs natively on Windows, on x64 and ARM64. This page
covers installing it with PowerShell, signing in, setting your key for other
tools, setting up Claude Code and Codex, and what does not work on Windows
yet.
You do not need the CLI to use the API. The
Python SDK
(pip install deeprelay-sdk), the
TypeScript SDK
(npm install @deeprelay/sdk) and any OpenAI-compatible client work on
Windows with the base URL https://api.deeprelay.ai/v1 and an API key from
the dashboard. See Getting started.
Install
Open PowerShell (Windows PowerShell 5.1 or PowerShell 7; no administrator rights needed) and run:
irm https://deeprelay.ai/install.ps1 | iex
The script:
- picks the build for your CPU (
windows_amd64orwindows_arm64); - downloads it from the latest release on GitHub Releases;
- verifies its SHA-256 against the release's
checksums.txt; - installs
deeprelay.exeto%LOCALAPPDATA%\Programs\deeprelay; - adds that directory to your user
PATH.
deeprelay works straight away in the window you installed from. Other
terminals see it after you open a new one.
Three environment variables change what the script does. Set them before you run it:
| Variable | Effect |
|---|---|
DEEPRELAY_INSTALL_DIR | Install to this directory instead of %LOCALAPPDATA%\Programs\deeprelay |
DEEPRELAY_VERSION | Install this exact version instead of the latest (3.3.0 or newer; earlier releases have no Windows build) |
DEEPRELAY_NO_MODIFY_PATH | Set to 1 to leave your PATH alone |
$env:DEEPRELAY_INSTALL_DIR = "C:\tools\deeprelay"
irm https://deeprelay.ai/install.ps1 | iex
Manual install. Download deeprelay_ (or
windows_arm64) from
GitHub Releases,
unzip it, and put deeprelay.exe in a directory on your PATH.
Update. Run the install command again. It replaces deeprelay.exe with
the latest release.
Uninstall. Run deeprelay logout, delete
%LOCALAPPDATA%\Programs\deeprelay, and remove that directory from your user
PATH (Settings → System → About → Advanced system settings → Environment
Variables).
Sign in
deeprelay login
This opens the dashboard sign-in in your browser and stores a key for the CLI
in %USERPROFILE%\.config\deeprelay\credentials.json. If you set
XDG_CONFIG_HOME, the file goes to %XDG_CONFIG_HOME%\deeprelay instead.
Then check it works:
deeprelay models list
deeprelay chat deeprelay/deepseek-v4.1-flash "Say hello in five words."
Every command is documented in the CLI reference.
Set your key for other tools
SDKs, scripts and coding agents read the key from the DEEPRELAY_API_KEY
environment variable. For the current PowerShell window:
$env:DEEPRELAY_API_KEY = (deeprelay auth token)
To keep it for new terminals and desktop apps, store it in your user environment and restart the app that needs it:
setx DEEPRELAY_API_KEY (deeprelay auth token)
setx saves the key in plaintext in your user environment. Two things
follow from that:
- While
DEEPRELAY_API_KEYis set, the CLI uses it instead of the key fromdeeprelay login, anddeeprelay auth tokenprints it back. - It does not follow a key rotation. After you rotate, clear the old value in your window first, then save the new one:
Remove-Item Env:DEEPRELAY_API_KEY
setx DEEPRELAY_API_KEY (deeprelay auth token)
Use the per-window form if you would rather not store the key.
With a key set, a request from PowerShell looks like this:
$headers = @{ Authorization = "Bearer $env:DEEPRELAY_API_KEY" }
irm https://api.deeprelay.ai/v1/models -Headers $headers
Coding agents
deeprelay setup claude-code and deeprelay setup codex work on Windows,
and so do deeprelay launch claude-code and deeprelay launch codex. All
four are run on a Windows machine with the real agents whenever that code
changes.
Claude Code
deeprelay setup claude-code # asks before writing
claude
Setup writes %USERPROFILE%\.claude\settings.json (or
.claude\settings.local.json with --scope project). Your key is not
stored there: the file's apiKeyHelper is
"C:/…/deeprelay.exe" auth token, which Claude Code runs through cmd.exe
each time it needs the key. If you move deeprelay.exe, run setup again.
deeprelay setup claude-code --remove undoes it. The rest is the same as on
macOS and Linux; see the Claude Code guide.
Codex CLI
deeprelay setup codex --shell-rc # asks before writing the config
codex # in a new PowerShell window
Setup writes %USERPROFILE%\.codex\config.toml and
deeprelay.config.toml. Codex reads your key from the
DEEPRELAY_API_KEY environment variable, so setup also offers to add this
line to your PowerShell profile (--shell-rc answers yes, --no-shell-rc
answers no):
$env:DEEPRELAY_API_KEY = (& 'C:\Users\you\AppData\Local\Programs\deeprelay\deeprelay.exe' auth token)
The line runs deeprelay auth token when PowerShell starts; the key itself
is not written to the profile. Windows has two PowerShells with separate
profiles, Windows PowerShell 5.1 and PowerShell 7, and setup adds the line
to both when both are installed. Open a new window afterwards.
Two cases where setup leaves a profile alone and tells you so:
- Windows PowerShell does not run profile scripts. On a fresh Windows install its execution policy is
Restricted. Either use PowerShell 7, or allow your own scripts and run setup again:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
- The profile is saved as UTF-16. Add the line to it yourself.
deeprelay setup codex --remove takes the provider out of config.toml. It
leaves the profile line in place, because other tools may read the same
variable, and names the files that still hold it. Codex started from an IDE
does not read your PowerShell profile; see
the Codex guide for how to give it the variable.
One session at a time
deeprelay launch claude-code
deeprelay launch codex
launch writes nothing: it configures one session through the child
process's environment and prints a cost receipt when the agent exits.
--print shows the command and variables in PowerShell syntax.
Other agents
deeprelay setup for OpenCode, Aider, Continue, Zed, Pi, Kimi Code and the
other agents does not support Windows yet. It stops with a message and
writes nothing. Follow the manual steps for your agent in
Coding agents: they need a base URL, a key and a model
ID, which are the same on every platform.
Not on Windows yet
deeprelay setup for agents other than Claude Code and Codex | Refuses on Windows. Configure the agent by hand, as above. |
deeprelay launch opencode | Not tested on Windows. |
| Homebrew | macOS and Linux only. Use the PowerShell installer. |
If you need one of these today, run the CLI under WSL: open PowerShell as
administrator, run wsl --install, restart, then in the Ubuntu terminal run
curl https://deeprelay.ai/install | sh. Inside WSL the CLI behaves as it
does on Linux.
Troubleshooting
deeprelay is not recognized. Open a new terminal: a window that was
already open does not see the updated PATH. If it still fails, check that
%LOCALAPPDATA%\Programs\deeprelay is in your user PATH.
The installer says the release has no Windows build. Windows builds start
with version 3.3.0. If you set DEEPRELAY_VERSION to an older version, clear
it and run the installer again.
checksum mismatch. The download did not match the published checksum
and nothing was installed. Run the installer again; if it repeats, a proxy or
antivirus is altering the download.
You ran the curl … | sh command in Git Bash. That installer is for
macOS and Linux. Use the PowerShell command above.