Claude on O2

Claude on O2

About Claude

Claude is a generative AI assistant that can help high-performance computing (HPC) users understand complex systems, write and optimize code, troubleshoot errors, and develop job scripts for schedulers such as Slurm. Claude can accelerate routine tasks and support performance-focused development, although its recommendations and generated code should always be reviewed and validated in the target HPC environment.

1. Install Claude Code

The draft guidance recommends Claude Code's native Linux installer when site policy allows a user-level installation and outbound HTTPS access.

curl -fsSL https://claude.ai/install.sh | bash

Then open a new terminal, or refresh your user-level PATH, and verify the installation:

claude --version claude doctor

2. Authenticate and start Claude Code

From the project directory:

cd ~/projects/<project-name> claude

Complete the browser-based sign-in flow. If the given url is entered into a local browser single sign on can be used to log into a institution provided instance.

3. Verify the session safely

For an initial test, keep the interaction read-only and limited to the current directory. A good first prompt is:

claude --sandbox -p "review this project and summarize its structure"