Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsApr 8, 2026·1 min de lectura

Together AI Sandboxes Skill for Claude Code

Skill that teaches Claude Code Together AI's sandbox API. Execute Python code in managed remote sandboxes with stateful sessions, file I/O, and isolated environments.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Community
Entrada
Together AI Sandboxes Skill for Claude Code
Comando de instalación directa
npx -y tokrepo@latest install 5086f64d-852f-4737-81ec-0018d6118a06 --target codex

Ejecutar después de confirmar el plan con dry-run.

TL;DR
A Claude Code skill for executing Python in Together AI's managed remote sandbox environments.
§01

What it is

This is a Claude Code skill that teaches the agent how to use Together AI's sandbox API. It enables Claude Code to execute Python code in managed remote sandboxes with stateful sessions, file I/O, and isolated environments. Instead of running code on your local machine, the agent sends code to a Together AI sandbox and gets results back.

This skill is for developers who want Claude Code to run computations, data analysis, or experiments in isolated environments without affecting their local setup. It is especially useful for data science workflows and untrusted code execution.

§02

How it saves time or tokens

Remote sandboxes eliminate the risk of local side effects from AI-generated code. The agent can install packages, process data, and run experiments in an isolated environment. Stateful sessions mean context persists across multiple code executions within the same session. The estimated token cost is around 2,400 tokens per session.

§03

How to use

  1. Add the Together AI Sandboxes skill to your Claude Code configuration.
  2. Set your Together AI API key.
  3. Ask Claude Code to run Python code in a sandbox.
  4. The agent creates a sandbox session and executes code remotely.
# Set Together AI API key
export TOGETHER_API_KEY='your-api-key'

# In Claude Code, the agent can now run:
# 'Run this data analysis in a sandbox'
# 'Execute this Python script in a remote environment'
§04

Example

How the skill works in practice:

# The agent calls the Together AI sandbox API
import requests

api_url = 'https://api.together.xyz/v1/code/sandbox'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}

# Create a sandbox session
session = requests.post(f'{api_url}/sessions', headers=headers).json()

# Execute code in the sandbox
result = requests.post(
    f'{api_url}/sessions/{session["id"]}/execute',
    headers=headers,
    json={
        'code': '''
import pandas as pd
import numpy as np

data = pd.DataFrame({
    'revenue': np.random.normal(1000, 200, 100),
    'costs': np.random.normal(600, 100, 100)
})
data['profit'] = data['revenue'] - data['costs']
print(data.describe())
'''
    }
).json()

print(result['output'])
§05

Related on TokRepo

§06

Common pitfalls

  • Together AI sandbox API requires an API key and may have usage costs. Check pricing before heavy use.
  • Sandbox sessions have resource limits (memory, CPU time). Large computations may be throttled or terminated.
  • File I/O within the sandbox is isolated. Files created in one session may not persist across sessions unless explicitly saved.
  • Network access from sandboxes may be restricted. Do not rely on sandboxes for web scraping or external API calls.
  • The skill teaches Claude Code the API patterns. If Together AI updates their API, the skill may need updating.

Preguntas frecuentes

What is a Together AI sandbox?+

A Together AI sandbox is a managed remote Python execution environment. Code runs in isolation with its own filesystem, installed packages, and resource limits. It is designed for safe code execution without local side effects.

Are sandbox sessions stateful?+

Yes. Variables, imported packages, and files created in one execution persist within the same session. This allows multi-step workflows where each code block builds on the previous one.

What Python packages are available?+

Common data science packages (pandas, numpy, matplotlib, scikit-learn) are pre-installed. Additional packages can be installed with pip within the sandbox session.

Is sandbox execution free?+

Together AI may charge for sandbox compute usage. Check their current pricing page for sandbox API costs. The skill itself is free to add to Claude Code.

Can I use sandboxes for production workloads?+

Sandboxes are designed for development, experimentation, and analysis rather than production workloads. For production compute, use dedicated infrastructure.

Referencias (3)
🙏

Fuente y agradecimientos

Part of togethercomputer/skills — MIT licensed.

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados