Skip to main content

Cursor Rules for Runloop

We provide Cursor rules files (.mdc) that give your AI assistant context about the Runloop SDK — covering devbox lifecycle, file operations, command execution, blueprints, snapshots, tunnels, and more.

Setup

1

Create the rules directory

2

Copy the rules for your language

Copy the file below into .cursor/rules/, keeping the .mdc extension. Cursor reads every .mdc file in that directory, so both can coexist in a polyglot project.
3

Start coding

Cursor will automatically use the rules to provide SDK-aware suggestions and completions.

Python — .cursor/rules/runloop-python-client.mdc

Rules for runloop_api_client, the async Python SDK.
runloop-python-client.mdc

TypeScript — .cursor/rules/runloop-typescript-client.mdc

Rules for @runloop/api-client.
runloop-typescript-client.mdc
These rules are the maintained source of truth for Runloop cursor rules. They cover the current SDK surface including AsyncRunloopSDK (Python) and RunloopSDK (TypeScript) with auto-loaded API keys from the RUNLOOP_API_KEY environment variable.