Skip to content

The Buildfunctions SDK for Agents: Hardware-isolated CPU and GPU Sandboxes for untrusted AI actions 🪐 Now in beta, with $100 in free credits!

Notifications You must be signed in to change notification settings

buildfunctions/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Buildfunctions SDK for Agents

 

Hardware-isolated execution environments for AI agents

Installation

npm install buildfunctions

Quick Start

1. Create an API Token

Get your API token at buildfunctions.com/settings

2. Authenticate

import { Buildfunctions, GPUSandbox } from 'buildfunctions'

const apiToken = process.env.BUILDFUNCTIONS_API_KEY

// Initialize
const buildfunctions = new Buildfunctions({ apiToken })
if (!buildfunctions) {
  throw new Error('Failed to initialize Buildfunctions SDK')
}

3. Create a GPU Sandbox

...
// Create a GPU Sandbox with Python and PyTorch 
const sandbox = await GPUSandbox.create({
  name: 'secure-agent-action',
  memory: "64GB",
  vcpu: 32,
  timeout: 1200,
  language: 'python',
  requirements: ['transformers', 'torch', 'accelerate'],
  model: './Qwen/Qwen3-8B', // model path (local or remote)
})

// Upload inference script from path (or just inline code)
await sandbox.upload({ filePath: 'inference_script.py' })

// Run script in a hardware-isolated virtual machine with full GPU access
const result = await sandbox.run(
  `python inference_script.py "${prompt}"`
)
...

The SDK is currently in beta.

About

The Buildfunctions SDK for Agents: Hardware-isolated CPU and GPU Sandboxes for untrusted AI actions 🪐 Now in beta, with $100 in free credits!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published