Integration Overview
Use this integration to capture Claude Code cloud-agent activity and upload each session log to your own Google Cloud Storage or Amazon S3 bucket. It is meant for testing cloud-agent telemetry without running a hosted Asymptote backend. This flow depends on the Beacon CLI. You runbeacon cloud commands from your
workstation to create the object-storage upload path, print Claude environment
variables, and generate the setup script that runs inside the Claude cloud
sandbox.
Overview
Claude Code Cloud Agents run in Anthropic’s cloud environment, so Beacon cannot use the long-running endpoint agent that local installs use. Instead, the setup script installs Beacon hooks inside the sandbox. During a cloud-agent session, those hooks write/tmp/beacon/runtime.jsonl; at the end of the session, Beacon
uploads that file to customer-managed object storage.
The setup has three parts:
- Create a dedicated GCS or S3 upload path with Beacon.
- Add Beacon cloud telemetry environment variables to the Claude Code cloud environment.
- Paste a Beacon-generated setup script into the Claude cloud environment.
Prerequisites
- Beacon CLI
v0.0.51or later. - For GCS:
gcloudinstalled and authenticated to the Google Cloud project you will use for telemetry storage. - For S3: AWS CLI installed and authenticated to an AWS account where you can create buckets, IAM users, inline IAM policies, and access keys.
- Claude Code cloud agent access for the repository you want to test.
- A Claude cloud environment with outbound access to:
- For GCS:
oauth2.googleapis.comandstorage.googleapis.com - For S3:
s3.<region>.amazonaws.com github.com*.githubusercontent.com
- For GCS:
gcloud and select your project:
1. Create the Upload Path
Choose GCS or S3 for the cloud-agent session logs.GCS
From your workstation, choose a bucket and prefix:
Review the bucket, service account, and IAM commands before applying them.
BEACON_CLOUD_GCS_CREDENTIALS_B64 anywhere you
share screenshots or logs.

Copy the printed BEACON_CLOUD_GCS_* variables into the Claude cloud environment.
S3
From your workstation, choose a bucket, region, and prefix:AWS_ACCESS_KEY_ID and
AWS_SECRET_ACCESS_KEY anywhere you share screenshots or logs.
The helper creates a dedicated IAM user and grants it s3:PutObject only under
the selected bucket prefix.
2. Configure Claude Code Cloud Agents
Open the Claude Code web application and select the cloud environment for your repository.
Select or create the Claude cloud environment that should run Beacon telemetry hooks.
oauth2.googleapis.com and storage.googleapis.com instead of
the S3 regional hostname.
Add these common environment variables:

Configure network access, Beacon metadata, GCS bucket settings, and the setup script in the Claude cloud environment.
3. Add the Setup Script
Generate the setup script for your Beacon release:- installs
beaconandbeacon-hooksin/tmp/beacon/bin, - finds the cloud sandbox repository root,
- writes
.claude/settings.local.jsoninside the sandbox clone, - excludes generated Claude settings from git commits.
4. Run a Cloud Agent Task
Start a Claude Code cloud agent task that uses tools. You can start the task from the Claude app on your phone or from the Claude Code web application. For example:
A successful Claude Code cloud agent session runs the setup script, starts Claude Code, and produces normal agent activity.
5. Verify Upload
For GCS, list the uploaded session objects:
Beacon uploads one readable runtime.jsonl object per Claude Code cloud agent session.
Security Note
The self-serve GCS flow above creates a dedicated service account scoped to object uploads for one bucket. The S3 flow creates a dedicated IAM user scoped tos3:PutObject under one prefix. Both flows store credentials in the Claude
Code environment. This is useful for proof-of-concept testing, but treat those
environment variables as sensitive credentials.
Claude notes that cloud environment variables are visible to users of that
environment and recommends avoiding secrets there when possible. Avoid broad
credentials, rotate or delete the generated key after testing, and review access
before using this flow with sensitive telemetry.
Troubleshooting
The bucket is empty
Confirm the Claude setup script ran and generated hooks:runtime.jsonl exists but object storage is empty, check network access and
credentials. The cloud sandbox must reach either the GCS OAuth/storage endpoints
or the regional S3 endpoint you configured.
Claude tries to commit hook settings
The setup script should write.claude/settings.local.json, not
.claude/settings.json. settings.local.json is intended for local or
sandbox-specific configuration and should stay out of commits.

