ChatGPT and Codex
ChatGPT and Codex are available on the SCRP cluster for users with a ChatGPT subscription. Because OpenAI does not serve Hong Kong directly, all traffic is routed through a relay server automatically.
Methods of Access
There are three ways to access ChatGPT on the cluster:
| Option | What it is | Access to Software and Files on SCRP? | Methods of Access |
|---|---|---|---|
| ChatGPT | The ChatGPT desktop application | Yes | Remote desktop SSH w/ X Server |
| ChatGPT (Web) | ChatGPT in a browser window | No | Remote desktop SSH w/ X Server |
| Codex CLI | OpenAI’s AI coding assistant in a terminal | Yes | Jupyter Lab Remote desktop SSH |
Signing in to Your ChatGPT Account
Important: the sign-in step requires a graphical interface. Launch either the ChatGPT desktop app or Codex CLI on either remote desktop or SSH with X Server. You cannot complete sign-in from a Jupyter Lab terminal.
Remote Desktop
Open the Applications menu on the cluster’s remote desktop and you will find an AI submenu with three entries:

To sign in:
- Launch ChatGPT (the desktop app) or Codex CLI.
- Choose
1. Sign in with ChatGPTand sign in with the ChatGPT account you subscribe to—email and password, or the Google / Apple / Microsoft single-sign-in buttons. - Once you see the chat window (or the Codex prompt), you are signed in.
The sign-in is shared by all three options. It lasts a long time—typically weeks—and should automatically renew with active use.
SSH
Run either scrp-chatgpt to launch the ChatGPT desktop app or
scrp-codex to launch Codex CLI. The subsequent steps are identical to
above.
SCRP Integration
scrp-chatgpt and scrp-codex only rely traffic for the underlying OpenAI apps.
After signing in, you can can additionally inject knowledge about
the cluster by setting Codex as the default AI assistant with the terminal command:
assistant-setup
Using ChatGPT
Option 1 - Codex CLI
After signing in through remote desktop, you can run
Codex CLI from a Jupyter Lab terminal — open a terminal in Jupyter
Lab and type scrp-codex. No further authentication is needed.
You can also launch it from the
Applications → AI menu on the remote desktop, or run in SSH the command scrp-codex.
- Full access to software and files on SCRP.
- Press
Ctrl+Ctwice to quit. - Non-interactive use also works, e.g.
scrp-codex exec "fix the failing test".
Important: always start Codex with scrp-codex, never plain codex — the wrapper
routes traffic through the SCRP relay. Plain codex will fail with a
“region not supported” error.
Option 2 - ChatGPT (desktop app)
The full ChatGPT desktop application, launched from remote desktop’s
Applications → AI menu, or from SSH with X Server with the
scrp-chatgpt command.
- Full access to software and files on SCRP.
Option 3 - ChatGPT (Web)
ChatGPT in a Chrome browser window, also launched from the
Applications → AI menu, or from SSH with the scrp-chrome command.
- Useful if you prefer the browser interface, or if the desktop app is not installed on the node you are using.
- No direct access to software and files on SCRP.
Privacy and Safety
- Your OpenAI credentials are sent only to OpenAI, through the SCRP relay server. The relay does not store or inspect your data — it only forwards traffic.
- Never paste your API key or password into shared documents, emails, or chat messages.
- Everything you send to ChatGPT or Codex goes to OpenAI’s servers, as with any cloud AI service — do not put sensitive data (passwords, personal data of research subjects) into prompts.
Troubleshooting
ERROR: relay tunnel not working
An administrator probably has not enabled your username yet — ask them to
run sudo scrp-codex-setup <your-username>. If you are
already registered, try the command again; if it keeps failing, the relay
server may be down — contact the SCRP administrators (mention
“scrp-proxy”).
“Unable to load site” or “region not supported” error
You bypassed the relay. Always launch via the Applications → AI menu or
the scrp-chatgpt / scrp-chrome / scrp-codex
commands — never launch the underlying app directly.
Codex asks me to sign in even though I already did
Sign-in tokens expire eventually (typically weeks). Launch ChatGPT or Codex CLI on the remote desktop again and repeat the sign-in step. If it keeps happening in Jupyter Lab only, make sure you signed in on the remote desktop, not in a headless session.
The desktop app or browser does not open
These are graphical applications and need the remote desktop — they cannot run in a plain SSH session. If the node you are on has no display capability at all, contact the SCRP administrators.