Northflank
Northflank provider for ComputeSDK — each sandbox is a deployment service in your Northflank project. Commands run in the container via Northflank's exec API; ports are exposed through the service's public DNS.
Installation & Setup
Add your Northflank credentials to a .env file:
Create the token under Team settings → API → Tokens → Create API token, then create (or pick) a Northflank project for your sandboxes.
Usage
Configuration Options
Supported Operations
create
✅
Creates a Northflank deployment service kept alive by a long-running command.
getById
✅
Only returns services whose name starts with servicePrefix (ComputeSDK-managed).
list
✅
Lists ComputeSDK-managed services in the project (paginated).
destroy
✅
Deletes the service; a no-op if it no longer exists.
runCommand
✅
Runs via Northflank's exec API. The first exec retries until the pod is ready.
getInfo
✅
getUrl
✅
Exposes the port publicly and returns its Northflank DNS. Only HTTP / HTTP/2 ports can get a public URL; TCP/UDP throws.
filesystem
✅
readFile/writeFile use Northflank's file-copy API; other ops run as shell commands.
Notes
tokenandprojectIdare required — the provider does not read them from the environment automatically, so passprocess.env.NORTHFLANK_TOKEN/process.env.NORTHFLANK_PROJECT_IDyourself.Background commands (
runCommand(cmd, { background: true })) are launched withnohupand redirected to/tmp/computesdk-bg.log.
Last updated
Was this helpful?