Skip to main content

Get Your API Key

First, sign up and get your API key from the dashboard.
1

Create an account

Visit buntime.sh/dashboard and sign up with your email or GitHub account.
2

Generate an API key

Once logged in, navigate to the API Keys section and create a new key. Copy it somewhere safe—you won’t be able to see it again.
3

Set your environment variable

Choose Your Integration Method

REST API

Make direct HTTP requests to the API

TypeScript SDK

Use our type-safe client library

REST API

1. Create a Session

Every execution happens within a session. Sessions persist files and processes across multiple executions.
Response:

2. Execute Code

Run your first piece of code in the session.
Response:

3. Work with Files

Write a file and execute it.

TypeScript SDK

1. Install the SDK

2. Initialize the Client

3. Create a Session

4. Execute Code

5. Work with Multiple Files

6. Create a Web Server


Complete Example

Here’s a full example that demonstrates the power of buntime.sh:

Next Steps

Multi-file Projects

Learn how to build complex applications

Web Apps

Create web servers with live preview

Databases

Work with Redis, PostgreSQL, and SQLite

AI Integration

Integrate with Claude, GPT, and MCP
Need help? Join our Discord community or check out the API Reference.