{% extends "broker/base.html" %}{% block title %}{% if rotated %}API key rotated{% else %}API key created{% endif %}{% endblock %}{% block content %} {% if rotated %}{% include "broker/project_navigation.html" with current_page="API key rotated" parent_anchor="api-keys" parent_label="Agent keys" %}{% else %}{% include "broker/project_navigation.html" with current_page="API key created" parent_anchor="api-keys" parent_label="Agent keys" %}{% endif %}

{% if rotated %}API key rotated{% else %}API key created{% endif %}

Copy this key now. It will not be shown again.

{{ secret }}

Key name: {{ credential.name }}
Identifier: {{ credential.id }}
Project: {{ project.name }}

{% if rotated %}

The previous key is revoked.

{% endif %}

The service saved a hash of this value. It has no recovery or reveal operation. If you lose the key, rotate it.

Connect your agent

  1. Open a terminal in your science project directory, using the installation that runs Compute Relay.
  2. Run this command for Codex:
    {{ init_command }}
    For Claude Code, add --client claude; for both clients, add --client both.
  3. Paste the key into the hidden terminal prompt. Keep it out of chat, command arguments and source files.
  4. Start a fresh agent session in that directory and enable its project MCP connection.

Initialization also writes a private helper guide for the Python SDK and verified result retrieval. It does not grant more access or submit a job.

{% if rotated %}

For a workspace already using the previous key, replace the contents of its private .compute-relay/project.key file using a local editor, keep it readable only by your account, and restart the agent session. Initialization refuses to overwrite an existing key.

{% endif %}Return to project keys
{% endblock %}