Skip to content

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:

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.

  1. Log in to the cluster with SSH:

    ssh hpc.cqls.oregonstate.edu
    
  2. Run setup on the login host:

    hpcagent setup
    

    For each step, setup shows will run: <command> and asks Run it? [y/N/skip]. The gateway step shows the Terms of Use and asks you to type yes and your ONID password. Setup never shows your key, your GitLab token, or your password.

  3. Get an allocation on a compute node. The report of setup shows the command for your queue, for example:

    salloc -p <queue> -c 4
    

    Slurm answers salloc: Granted job allocation.

  4. Run setup again, in the allocation:

    hpcagent setup
    

    Answer y to Make a first project at <root>/agent-start and test a session there?. The success line is session: the first session in <root>/agent-start answered READY.

  5. Start pi in the first project:

    cd <root>/agent-start
    hpcagent pi
    

    In pi, type /model and select a model of the bifrost provider.

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:

  1. Get an allocation: salloc -p <queue> -c 4.
  2. Go to your project directory.
  3. Run hpcagent pi, hpcagent claude, or hpcagent 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 guide for the full user guide.
  • Run hpcagent --help for the list of commands.
  • For help, contact CQLS.