Skip to content
Macrofold

Run Agent Harnesses in the Cloud

Invoke Claude Code, Codex, and OpenCode via API, CLI, or UI. Run them in isolated sandboxes with persistent filesystems, parallel worktrees, and Git-native version control.

Start with a few lines of code.

Choose a project, harness, and model.
Give it a task. Let it work.

Read the API quickstart
import { Macrofold } from 'macrofold';const macrofold = new Macrofold();const run = await macrofold.runs.create({  project_id,  harness: 'codex',  model: 'gpt-5.4-mini',  billing_mode: 'managed',  prompt: 'Build a working prototype.',});for await (const text of macrofold.runs.streamText(run.run_id)) {  process.stdout.write(text);}
Set up your first run

Create a project in the dashboard and set project_id and MACROFOLD_API_KEY. Choose a compatible model from the catalog: this example uses OpenAI’s GPT-5.4 mini with Codex. The catalog determines the provider. Managed execution uses your credits; no saved session or agent preset is required.

Follow the SDK installation guide. Go is a function body with ctx, projectID, fmt, and the SDK import. Rust runs in an async function with a parsed project UUID. Install the Macrofold CLI, then log in and link a project.

cURL uses jq to read the run ID. Keep the request key and body to recover an interrupted response. SDKs handle idempotency and stream reconnection. Complete API quickstart →

The conversation changes.
Their information stays.

Give every customer a persistent agent—with its own files, tools, and ongoing work. Let different agents build on those files over time.

Alice’s project files

One customer. One lasting source of context.profile.mdmemory/travel.mdtasks.json

Optional starter layout · ordinary, editable files

  1. Monday: meet Milo

    Alice shares her preferences with her personal agent.

  2. Tuesday: bring in a specialist

    A research agent reads the saved brief in a fresh conversation.

  3. Friday: follow up on schedule

    Milo uses the latest files to prepare Alice’s weekly plan.

  4. weekly-plan.md updated

    Alice opens the result and corrects a preference for next time.

Customer agents is an optional integration path over Macrofold’s projects, worktrees, presets and runs. Your app owns customer identity. This illustrative workflow uses ordinary files and separate conversations; the optional memory starter guides what agents save.

Build this customer experience

An entire agent harness
as one unit of execution.

Everything agents can do on your computer available in your product or internal tool, with thousands of available app connectors.

Example use cases:

Project

Give every customer a working context.

Put an agent inside your product, with a project that holds each customer’s knowledge. It reads their context before it gets to work.

Explore this feature

Worktrees

More tasks. Room for each one.

Draft outreach, review feedback, and update a brief in parallel. Each agent gets its own worktree, so concurrent tasks can work independently.

Explore this feature

Checkpoints and Git Sync

Keep the work. Build on it.

Persist files between runs with verified checkpoints. Review changes and merge them back into the project; sync your branches with GitHub when you’re ready.

Explore this feature

API, CLI, UI

Part of your product. Within your reach.

Your application starts the work through the API. Step in from the CLI or dashboard to give another instruction and follow the result.

Explore this feature

Connectors

Let context come from your tools.

Connect the customer’s CRM, email, and knowledge sources. Choose which connections and tools each task can access.

Explore all connectors
Project

Project

Give every customer a working context.

Put an agent inside your product, with a project that holds each customer’s knowledge. It reads their context before it gets to work.

Explore this feature

Everything you need to go live.

BYOK or Use Credits

Bring your own model keys or use managed credits. Pay for the compute you use, with model, storage, and tool charges based on your setup.

Explore pricing

Start at the right moment.

Trigger an agent from a Slack message, a webhook, or a recurring schedule. Connect an agent preset to a project and let the work begin.

Set up a trigger

Pick up where you left off.

Continue a compatible native session with its conversation and project files. Give another instruction without rebuilding the context from scratch.

Explore sessions

See the work as it happens.

Stream progress and tool activity into your product. Follow live output, inspect results, and replay the run’s recorded events later.

Explore streaming

Scope access to the task.

Choose the projects, connections, and tools an agent can use. Scoped grants and server-side authorization keep access tied to the task.

Control access

A boundary around every run.

Execute agents in isolated sandboxes. Infrastructure credentials stay outside agent processes, and stored provider keys and published checkpoints are encrypted.

Understand the platform

The agents you trust.
The tools you need.

Native harnesses, model providers, and the tools your work depends on.

Explore all connectors

Let’s build.

Give your next idea a place to run.