deepagents
deepagents copied to clipboard
test integration
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}")