CQLS AI Gateway¶
The CQLS AI Gateway gives you language models that run on CQLS servers. Your prompts and your files stay at CQLS.
You can use the gateway in three ways:
- The chat site (https://chat.ceoas.oregonstate.edu): chat with a model in a web browser.
- An API key from the key page (https://chat.ceoas.oregonstate.edu/keys): use the models from a script or from another tool.
- AI agents on the HPC cluster: the
hpcagentcommand runs a coding agent on a cluster host, in a sandbox. This page tells you how to start.
On campus or VPN only
The chat site and the key page are available only from the campus network. From an off-campus location, connect to the VPN first.
AI agents on the HPC cluster¶
An AI agent reads your files, runs commands, and changes code for you.
The hpcagent command starts an agent in a sandbox on a compute node.
It works with three agents:
- pi: uses the models of the CQLS AI Gateway. Your data stays at CQLS. pi needs no install and no account of its own.
- Claude Code: uses the models of Anthropic. It needs your own Anthropic account.
- Codex: uses the models of OpenAI. It needs your own OpenAI account.
Warning
Claude Code and Codex send your prompts, and the contents of each file that the agent reads, to Anthropic or OpenAI. Before you start an agent in a project, decide what kind of data the project holds. The Agentic Coding Policies tell you which agent you can use with which data.
Before you start¶
Read these two pages:
You need an account on the Wildwood HPC cluster. See the Quick Start page.
Set up your account¶
The hpcagent setup command checks your account and fixes each open step.
It shows each command before it runs it, and it asks you first.
The default answer is no.
-
Log in to the cluster with SSH:
ssh hpc.cqls.oregonstate.edu -
Run setup on the login host:
hpcagent setupFor each step, setup shows
will run: <command>and asksRun it? [y/N/skip]. The gateway step shows the Terms of Use and asks you to typeyesand your ONID password. Setup never shows your key, your GitLab token, or your password. -
Get an allocation on a compute node. The report of setup shows the command for your queue, for example:
salloc -p <queue> -c 4Slurm answers
salloc: Granted job allocation. -
Run setup again, in the allocation:
hpcagent setupAnswer
ytoMake a first project at <root>/agent-start and test a session there?. The success line issession: the first session in <root>/agent-start answered READY. -
Start pi in the first project:
cd <root>/agent-start hpcagent piIn pi, type
/modeland select a model of thebifrostprovider.
Tip
If a step fails, run hpcagent doctor.
Doctor shows each open step and the command that fixes it.
Doctor changes nothing.
Start a session¶
Each time that you want to work with an agent:
- Get an allocation:
salloc -p <queue> -c 4. - Go to your project directory.
- Run
hpcagent pi,hpcagent claude, orhpcagent codex.
Do not start an agent on a login host or on a file-transfer host.
hpcagent refuses to start there.
Claude Code and Codex¶
Install and log in from inside a session, in an allocation on a compute node.
When Claude Code is not installed, hpcagent claude prints the install command.
Then log in:
hpcagent claude
hpcagent codex login
When the Terms of Use change¶
When a new version of the Terms of Use takes effect, your gateway key stops. Run this command on a cluster host to accept the new version:
hpcagent gateway enroll
Then start a new session. A pi session that runs already keeps its old key.
What an agent can and cannot do¶
- An agent works with your account. You are accountable for each command that it runs.
- An agent can read the state of Slurm, but it cannot submit a job. Review a job script that an agent wrote, and submit it yourself, outside the session.
- In pi, each change to a file and each shell command carries a short reason from the agent. pi does not change a file that the agent did not read first.
- An agent opens GitLab merge requests only for the projects that you grant with
hpcagent gitlab allow.
More help¶
- On the cluster, run
hpcagent help guidefor the full user guide. - Run
hpcagent --helpfor the list of commands. - For help, contact CQLS.