Deploy an agent you built with Codex, Claude Code or Hermes to LagrangeCloud without leaving it. The lagrange plugin reads your agent's folder (AGENTS.md or CLAUDE.md, skills, MCP servers, scripts), uploads it with the keys it needs, and gives you an API endpoint, a Playground and a chat widget for your site.
Codex:
codex plugin marketplace add https://github.com/TensorBlock/lagrange-plugins
codex plugin add lagrange@tensorblockIf you use the Codex app and have no codex command, run the same two lines with npx -y @openai/codex in place of codex. The app picks up the plugin from the same ~/.codex folder.
Claude Code:
claude plugin marketplace add https://github.com/TensorBlock/lagrange-plugins
claude plugin install lagrange@tensorblockHermes installs the plugin's deploy skill straight from this repository:
hermes skills install TensorBlock/lagrange-plugins/lagrange/skills/deployThe plugin needs Node 22 or later.
Open Codex, Claude Code or Hermes in your agent's folder and ask it to deploy, for example "Deploy this agent to LagrangeCloud". In Claude Code you can also run /lagrange:deploy.
The plugin uses the production service at https://lgr.tensorblock.co. If you previously used staging, sign in to production when prompted; accounts, credit, and agents are separate between environments. To use staging or a self-hosted server, explicitly request its URL.
The first time, a browser page opens for you to sign in. Then it:
- writes
lgr.yamlfrom your folder and shows you what will be uploaded, - asks which of your own MCP servers the agent uses,
- stores the keys those servers and scripts need as LagrangeCloud secrets, reading them on your machine without printing them,
- deploys and sends the agent a test message,
- if the agent is a recurring job, such as a daily review, asks when it should run and sets up the schedule,
- gives you the console link.
The agent runs on the same harness you use: Codex, Claude Code or Hermes. Lagrange, our own harness, is coming soon.
After you change the folder, ask again to deploy a new version. The endpoint and keys stay the same.
The deploy steps and the lgr command line come from LagrangeCloud each time the plugin runs, so you get new releases without updating the plugin. The plugin itself rarely changes; to update it, run claude plugin marketplace update tensorblock && claude plugin update lagrange@tensorblock in Claude Code, codex plugin marketplace upgrade tensorblock && codex plugin add lagrange@tensorblock in Codex, or hermes skills update in Hermes.
These don't carry over: MCP servers on localhost, MCP servers you signed in to through the browser, and files not listed under files: in lgr.yaml. Add servers and keys by hand on the agent's page in the console, under MCP servers and secrets.
lagrange/skills/deploy/SKILL.md: tells Codex, Claude Code or Hermes to runlgr guideand follow the steps it prints.lagrange/skills/deploy/scripts/lgr.mjs: a launcher that downloads the server's current command line (lgr) into~/.cache/lgrwhen it changes, then runs it.