Using Claude Code with OnDemand Apps
Claude Code is a terminal-based tool, so from Carina OnDemand you run it through an app’s built-in terminal. Because these sessions already run on a compute node (not a login node), you don’t need a separate srun step first.
Note: Before using Claude Code here, make sure it’s configured with your AI API Gateway key — see Claude Code on Carina for setup instructions.
The Command
Once you have a terminal open in any of the apps below, run:
ml claude-code
claude
Opening a Terminal
VS Code: Terminal > New Terminal (or Ctrl+`).
RStudio: The Terminal tab next to the Console pane.
JupyterLab: From the Launcher, open a Terminal (or File > New > Terminal).
MATLAB: The MATLAB OnDemand session is a graphical environment and doesn’t include its own terminal panel. Run Claude Code alongside it from a separate session instead — for example, SSH into Carina and request a compute node with srun — while your MATLAB session keeps running independently.
Note: Claude Code can read and edit files in your project directory while your OnDemand session is open, but each app’s terminal is tied to that session — closing the session ends your Claude Code process too.