Skip to content

Conversation

@ElleNajt
Copy link
Contributor

@ElleNajt ElleNajt commented Feb 2, 2026

Summary

  • Add env and secrets fields to ClaudeCodeClientConfig
  • These are merged with the existing api_key_secret when creating the underlying CloudRunClient
  • Allows passing additional credentials (e.g., Matrix tokens) to Claude agents

Use case

Passing Matrix credentials to agents so they can message humans during task execution:

config = ClaudeCodeClientConfig(
    project_id="my-project",
    gcs_bucket="my-bucket",
    api_key_secret="anthropic-api-key",
    secrets={
        "MATRIX_ACCESS_TOKEN": "matrix-token-secret",
    },
    env={
        "MATRIX_ROOM_ID": "!roomid:matrix.org",
    },
)

Test plan

  • Existing tests pass
  • New secrets appear as environment variables in container

🤖 Generated with Claude Code

ElleNajt and others added 2 commits February 1, 2026 17:12
Allow passing additional environment variables and secrets to Claude Code
containers. These are merged with the existing api_key_secret (which sets
ANTHROPIC_API_KEY).

Use case: passing Matrix credentials to agents so they can message humans
during task execution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allows customizing how claude is invoked, e.g. for streaming output
through a wrapper script.

Supports placeholders: {flags}, {system_prompt_arg}, {task}

Example:
    config = ClaudeCodeClientConfig(
        ...
        claude_command='python /workspace/input/repo/stream.py "{task}"',
    )

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant