The default cgpu configuration uses a shared developer project which is currently restricted. To use cgpu correctly, you need to set up your own Google Cloud credentials.
- Go to the Google Cloud Console.
- Click the project selector (top left) and choose New Project.
- Name it
montage-ai-cgpu(or anything you like) and click Create.
- Go to APIs & Services > OAuth consent screen.
- Choose External (available to any user with a Google account) and click Create.
- Note: If you choose Internal, only users in your organization can use it.
- App Information:
- App name:
cgpu - User support email: Your email
- Developer contact information: Your email
- App name:
- Click Save and Continue.
- Scopes: Click Add or Remove Scopes.
- Manually add this scope:
https://www.googleapis.com/auth/colaboratory - Also select
.../auth/userinfo.emailand.../auth/userinfo.profile. - Click Update, then Save and Continue.
- Manually add this scope:
- Test Users:
- Click Add Users.
- Enter your own Google email address.
- Click Save and Continue.
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID.
- Application type: Select Desktop app.
- Name:
cgpu-client - Click Create.
- Copy the Client ID and Client Secret.
Provide the Client ID and Client Secret to the assistant, or create the config file manually at ~/.config/cgpu/config.json:
{
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"colabApiDomain": "https://colab.research.google.com",
"colabGapiDomain": "https://colab.googleapis.com"
}Run the login locally (not inside the cluster):
cgpu connectNotes:
- Keep the terminal open until the flow completes.
- If the callback page shows “connection refused”, the local callback server wasn’t running.
Re-run
cgpu connectand retry the login.
If you run Montage AI in the cluster, CGPU jobs (encode/upscale/voice isolation) need the cgpu config mounted into worker pods.
Create a secret named cgpu-credentials with config.json and optional session.json, then redeploy: the workers mount it into /home/montage/.config/cgpu.
Without this secret, CGPU jobs will fall back to local CPU/GPU.
./scripts/ops/cgpu-refresh-session.shThis runs cgpu connect, updates the secret, and restarts the worker + cgpu-server deployments.