LogoFreestyle

Getting Started

Freestyle is infrastructure for code you didn't write. Whether it's for your users or your AI agents, managing code you didn't write presents unique challenges that traditional infrastructure wasn't designed to solve.

Get an API Key

Get your API key from the Freestyle Dashboard. Store it in an environment variable named FREESTYLE_API_KEY so our SDKs can automatically detect it.

Install the SDK

npm i freestyle-sandboxes
pnpm i freestyle-sandboxes
bun i freestyle-sandboxes
yarn add freestyle-sandboxes
pip install freestyle

Otherwise, see the API Reference for direct HTTP usage.

Add to Your Editor

Cursor

Add to Cursor

VSCode

Add to VSCode

Claude Code

claude mcp add --transport http freestyle-docs https://docs.freestyle.sh/api/mcp/mcp

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "freestyle-docs": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://docs.freestyle.sh/api/mcp/mcp"]
    }
  }
}

Talk to Us

Questions or need help? Join our Discord server.

On this page

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.