Skip to content

Conversation

@eyurtsev
Copy link
Collaborator

@eyurtsev eyurtsev commented Nov 4, 2025

Code mount:

import os
from runloop_api_client import Runloop
from runloop_api_client.types import LaunchParameters

client = Runloop() # API Key is automatically loaded from "RUNLOOP_API_KEY" environment variable

devbox = client.devboxes.create(
    environment_variables={"GH_TOKEN": os.environ.get("GITHUB_TOKEN")},
    launch_parameters=LaunchParameters(
        launch_commands=[
        "git config --global credential.helper 'cache --timeout=3600'",
        "echo \"protocol=https\nhost=github.com\nusername=$GH_TOKEN\npassword=$GH_TOKEN\" | git credential-cache store"
    ]
    ),
    code_mounts=[
        {
          "repo_name": "personal-site-generator",
          "repo_owner": "eyurtsev",
          "token": os.environ.get("GITHUB_TOKEN"),
        }
    ]
)
print(f"Devbox created with ID: {devbox.id}")

@eyurtsev eyurtsev force-pushed the eugene/runloop_middleware branch from b932f2d to 87a8b44 Compare November 5, 2025 15:03
@eyurtsev eyurtsev force-pushed the eugene/runloop_middleware branch from bd47047 to 7defe36 Compare November 6, 2025 18:04
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.

2 participants