Skip to content

Synodes Documentation

The Synodes SDK provides official Python and TypeScript interfaces for interacting with Synodes, enabling you to programmatically manage development environments and execute code.

Quick Start

Run your first line of code in a Synodes Sandbox. Use our LLMs context files for faster development with AI assistants.

1. Get Your API Key

  • Go to the Synodes Dashboard.
  • Create a new API key. Make sure to save it securely, as it won’t be shown again.

2. Install the SDK

Terminal window
pip install synodes

3. Write Your Code

Create a file named: main.py

from synodes import Synodes, SynodesConfig
# Define the configuration
config = SynodesConfig(api_key="your-api-key")
# Initialize the Synodes client
synodes = Synodes(config)
# Create the Sandbox instance
sandbox = synodes.create()
# Run the code securely inside the Sandbox
response = sandbox.process.code_run('print("Hello World from code!")')
if response.exit_code != 0:
print(f"Error: {response.exit_code} {response.result}")
else:
print(response.result)
# Clean up
sandbox.delete()

4. Run It

Terminal window
python main.py

✅ What You Just Did

  • Installed the Synodes SDK.
  • Created a secure sandbox environment.
  • Executed code remotely inside that sandbox.
  • Retrieved and displayed the output locally.

You’re now ready to use Synodes for secure, isolated code execution.

Introduction

Account management

Agent Toolbox

Other