computesdk/computesdk
关于
A free and open-source toolkit for running other people's code in your applications.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +4
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文One router for sandboxes and actions.
Run agent code and GitHub workflows across sandbox providers. We handle the compute.
Sandbox Router · Actions · Public benchmarks · Docs
One router. Two ways to run.
- Sandbox Router runs generated code, tests, and scripts in isolated sandboxes. Use the
computeCLI, TypeScript SDK, or API. Let ComputeSDK choose a provider, select one yourself, or set a fallback order. Use managed compute or bring your own provider keys. - ComputeSDK Actions runs supported GitHub workflows on the same router. Follow logs, download artifacts, and rerun failed jobs.
Open the dashboard · Read the docs
Install agent skills
npx skills add computesdk/computesdk --list
npx skills add computesdk/computesdk --skill sandbox-router
npx skills add computesdk/computesdk --skill computesdk
Start with sandbox-router for a hosted TypeScript integration or to use
the Router through the CLI, REST or MCP. For a direct adapter integration,
install computesdk. Provider skills such as e2b-sandbox show both
workflows where supported.
See all skill installation options.
Start on a provider
Create a sandbox on a specific provider through ComputeSDK:
npm create modal
# Or: npm create e2b
These starters install or upgrade the ComputeSDK CLI when needed, sign you in and create a sandbox pinned to that provider. They use your organization's managed-compute or BYOK routing. See sandbox providers for setup and cleanup.
Start with the CLI
npm install -g @computesdk/cli
compute login
compute sandboxes route
compute new
compute exec echo hello
compute destroy
Other installation options include macOS/Linux and Windows installers. Creation requires available credit or a configured BYOK route. Sandboxes keep running and billing until destroyed or their lifetime expires.
Build with the TypeScript SDK
import { compute } from 'computesdk';
const sandbox = await compute.instances.create({ size: 'small' });
try {
const result = await sandbox.runCommand('echo hello');
console.log(result.stdout);
} finally {
await sandbox.destroy();
}
npm install computesdk
export COMPUTE_API_KEY="your_org_api_key"
Follow the complete runnable SDK quickstart to create an API key and run this from Node.js. See routing and BYOK to choose account modes and understand billing.
Go further
| Task | Guide |
|---|---|
| Send a local project to a sandbox | Project sync |
| Configure managed compute and BYOK | Routing and billing |
| Use the SDK in an application or agent | TypeScript SDK |
| Run workflows on sandbox providers | Actions |
| Connect an AI assistant | MCP server |
Open-source SDK and contributing
For direct vendor integrations, provider development and repository contribution instructions, see the open-source SDK guide. Individual adapters are documented in their GitHub packages.
Community and support
GitHub Discussions · GitHub Issues
License
探索相关项目
加载中…