agentsclimarketplace

Sapiom deploy

Skill sapiom/skills/skills/sapiom-deploy

Deploy and run code on Sapiom — scheduled jobs, batch execution, sandboxes. Use when user says "deploy this", "ship it", "run this on a schedule", "put this on a cron", "run these tasks in parallel", "spin up a server", "I need a dev environment", or already has a script and wants it running in the cloud.From its SKILL.md

Install
npx -y skills add sapiom/skills --skill sapiom-deploy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

4 things to look at

  • reads credentialsReads from 1 credential source: `process.env.SAPIOM_API_KEY`.
  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 4 commands, including `POST /v1/jobs?name=my-job&schedule=0 */2 * * *` and 3 more.
  • fetches URLsInstructs the agent to fetch 1 URL, including https://blaxel.services.sapiom.ai.

SKILL.md

4.1 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

Sapiom Deploy

Deploy and run code via Sapiom. ZIP your code, POST it, done.

When to Use

  • User says "deploy this" / "ship it" / "put this in the cloud"
  • User wants to run a script on a schedule
  • User wants to process N items in parallel
  • User wants a persistent environment with ports/filesystem
  • User already has working code and wants it deployed

Building an agent from scratch? Use the sapiom-agent-builder skill instead — it handles the full workflow from intent to deploy.

Deploy Patterns (pick one)

PatternWhat It DoesWhen to UseReference
Scheduled jobRuns on cronPeriodic tasks (monitoring, scraping, reports)references/jobs.md
Batch jobN parallel tasks on demandProcess a list of items in parallelreferences/jobs.md
Orchestrator + workersScheduled job fans out to batchPeriodic task that processes N itemsreferences/patterns.md
SandboxPersistent instance with ports + filesystemDev environments, servers, long-running processesreferences/sandboxes.md

Quick Decision

  • "Run X every hour" → Scheduled job
  • "Process these 50 items" → Batch job
  • "Every hour, check for new items, process each" → Orchestrator + workers
  • "Spin up a server" / "I need a dev environment" → Sandbox

Setup (same for all patterns)

const { createFetch } = require("@sapiom/fetch");
const safeFetch = createFetch({
  apiKey: process.env.SAPIOM_API_KEY,
});
const GATEWAY = "https://blaxel.services.sapiom.ai";

Example: Deploy a Script on a Schedule

User says: "Deploy this script to run every 2 hours"

Steps:

  1. Read references/jobs.md for the full API
  2. ZIP index.js + package.json (files at ZIP root, not in a subdirectory)
  3. POST /v1/jobs?name=my-job&schedule=0 */2 * * * with ZIP body
  4. Response returns { status: "deployed" } — deploy is synchronous, no polling

Result: Deploy returns immediately with status: "building". Poll GET /v1/jobs/my-job every 10–15s until "deployed" (~60–120s). Then the job runs every 2 hours.

Example: Fan Out to Parallel Workers

User says: "Process these 100 URLs in parallel"

Steps:

  1. Deploy worker code as a batch job (no schedule): POST /v1/jobs?name=my-worker with ZIP body
  2. Trigger execution: POST /v1/jobs/my-worker/executions with { tasks: [{ url: "..." }, ...] }
  3. Each task runs in parallel, receives its payload via blStartJob(async (args) => { ... })

Result: 100 tasks run concurrently. Check progress with GET /v1/jobs/my-worker/executions/{id}.

Troubleshooting

Deploy returns 502

Cause: Bad package.json — missing main, scripts.start, or invalid JSON. Fix: Ensure package.json has "main": "index.js" and "scripts": { "start": "node index.js" }.

Deploy returns 402

Cause: Missing or invalid SAPIOM_API_KEY. Fix: Ensure the API key is valid and passed via the @sapiom/fetch SDK.

Job deploys but fails at runtime

Cause: Code works locally but crashes in the cloud — usually missing env vars. Fix: Pass SAPIOM_API_KEY and any other env vars via the envs field in the JSON deploy body.

ZIP files not found by builder

Cause: Files nested in a subdirectory inside the ZIP (e.g., my-project/index.js instead of index.js). Fix: ZIP from inside the directory: cd my-project && zip -r ../deploy.zip .

Job name conflict

Cause: A job with that name already exists. Fix: Use PUT /v1/jobs/{name} to update, or DELETE then recreate.

References

  • references/jobs.md — Jobs API (create, deploy, execute, manage)
  • references/sandboxes.md — Sandboxes API (create, filesystem, processes, ports)
  • references/patterns.md — Orchestrator + workers pattern with concrete example

What ships with it: 3 files

14.0 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.