Terminal
Terminal/Skill
Runs Python remotely in Together AI managed sandboxes with stateful sessions, file uploads, data analysis, and chart output, for agents that execute code.
By Together AI
Works with
npx skills add togethercomputer/skills --skill together-sandboxesUse Together Sandboxes when the user wants to execute Python remotely in a managed sandbox.
Typical fits:
together-gpu-clusters for full infrastructure control or larger distributed jobstogether-dedicated-containers for custom containerized runtime logictogether-chat-completions if the user only wants generated code, not executed codeclient.code_interpreter.execute().session_id when the workflow depends on prior state.stdout, stderr, structured outputs, and display outputs separately.together>=2.0.0). If the user is on an older version, they must upgrade first: uv pip install --upgrade "together>=2.0.0".session_id as part of the workflow state.response.errors before assuming a run succeeded.plt.show() with the Agg backend does not reliably produce display_data outputs. To retrieve charts, save the figure to a BytesIO buffer with fig.savefig(), base64-encode it, and print the encoded string to stdout. Parse it from the stdout output on the client side. See the chart example in scripts/execute_with_session.py.