Quickstart

Quickstart

If you built an agent in Codex, Claude Code, Hermes or DeepSeek Harness, the lagrange plugin deploys it from the folder you are working in. It reads the folder, uploads it with the keys it needs, and gives you an endpoint you can call.

You need Node.js 22 or later.

1. Install the plugin

Codex CLI:

codex plugin marketplace add https://github.com/TensorBlock/lagrange-plugins
codex plugin add lagrange@tensorblock

Codex app (if you have no codex command; the app picks the plugin up from the same ~/.codex folder):

npx -y @openai/codex plugin marketplace add https://github.com/TensorBlock/lagrange-plugins
npx -y @openai/codex plugin add lagrange@tensorblock

Claude Code:

claude plugin marketplace add https://github.com/TensorBlock/lagrange-plugins
claude plugin install lagrange@tensorblock

Hermes (it installs the plugin's deploy skill):

hermes skills install TensorBlock/lagrange-plugins/lagrange/skills/deploy

DeepSeek Harness (it puts the plugin's deploy skill in ~/.agents/skills, which dsh reads; run it again to update):

curl -fsSL https://lgr.tensorblock.co/cli/install-dsh.sh | sh

The plugin is tested on macOS and Linux. On Windows, use it inside WSL.

2. Ask it to deploy

Open Codex, Claude Code, Hermes or DeepSeek Harness in your agent's folder and ask:

Deploy this agent to LagrangeCloud

In Claude Code you can also run /lagrange:deploy.

Claude Code · ~/example-store/support-bot

/lagrange:deploy

  1. Signed in to LagrangeCloud in the browser
  2. Wrote lgr.yaml from CLAUDE.md, 2 skills and scripts/
  3. Kept the MCP servers linear and stripe
  4. Stored LINEAR_TOKEN and STRIPE_KEY as secrets, without printing them
  5. Deployed support-bot v1 to LagrangeCloud using Claude Code
  6. Sent a test message: "Where is order 1057?" was answered

Live https://lgr.tensorblock.co/v1/invoke/ag_5d02c7a3b81e

The first time, a browser page opens for you to sign in and approve the device. Then the plugin:

  1. writes lgr.yaml from the folder (see lgr.yaml) and shows you what will be uploaded,
  2. asks which of your own MCP servers the agent uses,
  3. stores the keys those servers and scripts need as project secrets, reading them on your machine without printing them,
  4. deploys the agent and sends it a test message,
  5. if the agent is a recurring job, such as a daily review, asks when it should run and sets up a schedule,
  6. gives you the link to the agent in the console.

LagrangeCloud hosts your agent. A harness runs its instructions and tools. The agent keeps the harness you use locally: Codex agents run on Codex, Claude Code agents on Claude Code, Hermes agents on Hermes, DeepSeek Harness agents on DeepSeek Harness. Lagrange, our own self-improving harness, is coming soon.

3. Try it and call it

The agent's page in the console has:

  • New run: give the agent one task and follow its trace live.
  • API: the endpoint, caller keys and request examples, including a chat widget to paste into a website. Try it in Playground there talks to the agent through its endpoint, with each reply's time, cost and run.
  • Schedules: schedules and webhooks that start runs.
  • Setup: instructions, skills, MCP servers and secrets.

Create a caller key under API, then follow Call your agent.

Deploying again

After you change the folder, ask again to deploy. Each deploy is a new version on the same endpoint and keys, so callers get the change on their next message. See Versions and changes to try a version before callers get it.

What doesn't carry over

  • MCP servers that run on localhost. Add them on the agent's page under Setup → MCP servers and secrets, as a hosted URL or as a command the sandbox runs.
  • Your sign-ins, for long. MCP servers you signed in to through the browser in Codex or Claude Code (Linear, Notion, Sentry) work right after the deploy with the access token your tool holds. When it expires, runs fail, schedules pause and you're emailed; click Reconnect on the agent's page once, and the platform keeps it signed in from then on.
  • Files that aren't listed under files: in lgr.yaml. Only listed files are uploaded.