Create an agent
There are four ways to get an agent onto LagrangeCloud. All of them end in the same place: a versioned agent with an endpoint, a Playground and a page in the console.
In the console, go to Agents → New agent.
The agent's lifecycle is shown separately from its run status: Active accepts new work, Paused blocks new work, and Removed keeps a readable history without accepting new work or configuration changes. Idle only means there is no queued or running task; it does not turn off schedules. Paused agents still allow ordinary settings and version edits, which do not resume them. Their compute resources can keep running and incurring charges. Removed agents remain reachable from historical runs or by ID, with their versions, usage and feedback retained. Their names remain reserved.
For your own model endpoint and API key, see Bring your own model.
From Codex, Claude Code, Hermes or DeepSeek Harness
If the agent already works in Codex, Claude Code, Hermes or DeepSeek Harness, deploy it from there with
the lagrange plugin. This is the shortest path; see the
Quickstart.
Build from scratch
On Build from scratch, write what the agent should do, for example "Answer customer questions about orders on our Shopify store, and hand anything about refunds to a person", and click Draft agent.

A model drafts:
- the instructions (
AGENTS.md), - up to a few skills,
- the secrets those skills read, each named for its service, with what it is for and where to get it.
Drafted agents call outside services over their HTTP APIs from skills, with the secrets as environment variables, so they need no MCP servers to run. Edit anything in the draft, then Continue to review it. Drafting takes a minute or so and needs credit left on your organisation.
If your organisation has no credit, choose Use my description as instructions to name and create the agent yourself. You can then try it using any free agent runs your organisation has left.
Try the demo agent
Run the demo on the Overview page (or Try the demo agent on the
Agents page) deploys support-desk, a customer support agent for a made-up
shop, and runs it on 5 customer messages. It has the parts a real agent would
have: instructions, a policy skill, data files and a local MCP server that
looks up orders and issues refunds.
Its instructions are written the way first versions often are: they have the agent pull the shop's whole order list to find one order, where a single lookup would do, and update the slow help-desk ticket after every step, though only the last update counts. Once the runs finish, Lagrange reads their traces and proposes a change as a preview version, and the agent's page links to it. Replay it on the same messages to see the cost and time before and after, then promote it. Your organisation's first demo is free; later ones are charged like any run, and replays stay free.
From the command line
With the CLI, in the agent's folder:
lgr import --harness codex # writes lgr.yaml from what the folder has
lgr secrets set LINEAR_TOKEN --from-env
lgr deploy
lgr chat support-botlgr import takes --harness, --model and --mcp a,b (MCP servers to
bring along from your Codex, Claude Code, Hermes or DeepSeek Harness config). Check lgr.yaml before
deploying: only the files listed under files: are uploaded.
If the selected instructions or skills reference Slack connector tools such as
mcp__claude_ai_Slack__*, import adds managed Slack unless a Slack MCP server
was already imported. Review the note and generated config. After deployment,
use Setup → Connect Slack, then select channels; your local connector login
is not copied. --mcp selects local servers; detected managed Slack is added
alongside them. Prose mentions of Slack without imported Slack tools produce
a suggestion to add provider: slack if needed, without adding it automatically. Review required operations: managed
Slack can read channels/threads and post messages, but does not provide
workspace-wide search or every tool from your original connector.
Harnesses and models
| Harness | What it is |
|---|---|
codex | OpenAI's Codex agent |
claude-code | Anthropic's Claude Code agent |
hermes | Nous Research's Hermes Agent. Its runs can't stop for approval: commands and tools always run, inside the sandbox |
deepseek | DeepSeek's DeepSeek Harness (dsh), a developer preview. Its runs can't stop for approval: commands and tools always run, inside the sandbox |
lagrange | Our own harness, coming soon. It will learn from the agent's runs; see what's next. |
| your own | A command in the agent's files that speaks the harness protocol |
Without a model of your own, agents call platform models: Codex agents use
tensorblock/gpt-6.1-sol, Claude Code and Hermes agents
tensorblock/claude-opus-5-5, and DeepSeek Harness agents
tensorblock/deepseek-v4-pro by default. Choose another platform model in the agent's Settings. The
harness and the model are separate choices: a Codex agent can run a Claude
model, and a Claude Code agent a GPT model. A model name without the
tensorblock/ prefix, such as gpt-6.1-sol, means the platform model of
that name. Bringing your own provider key isn't supported yet.
After deploying
- Set missing secrets under Settings → Secrets, or with
lgr secrets set NAME. A deploy warns about secrets the project doesn't have yet; calls that need them fail until they are set. - Add MCP servers that couldn't be deployed, such as ones that ran on your machine, under Setup → MCP servers and secrets on the agent's page.
- Change the agent with Adjust or a new deploy.
Rename
Choose Rename agent from the agent's menu, or run
lgr agents rename <agent> <new-name>. The ID, endpoint, caller keys,
schedules, versions and run history stay the same; only commands that name the
agent, such as lgr chat, need the new name. A folder you deployed from keeps
updating the same agent, even while its lgr.yaml still has the old name.
Names are unique in a project, including the names of removed agents.
Pause and resume
Use Pause agent in an agent row's actions menu or the menu on its detail page. The confirmation reads the current waiting runs, running runs, background preparation, triggers, instances and fleets before you act. If these details cannot be loaded, the action is not submitted. Unresolved resource bindings are shown as unknown, not counted as absent.
Pause blocks new execution and requests cancellation of waiting runs. Already-running runs continue unless you cancel them from Runs. A successful pause can still have preparation or cancellation cleanup in progress; the result reports those separately. It does not stop machines, scale fleets, delete disks, or promise that resource charges have ended.
Resume agent permits future work. Still-enabled schedules start from their next future time without catching up on missed runs. Disabled triggers stay disabled, cancelled runs stay cancelled, and stopped resources are not restarted. The independent Pause API / Resume API setting is unchanged.
Remove and restore
Choose Remove agent from the row or detail actions menu. An Active agent first offers a separate Review pause action; pausing does not proceed to removal automatically. Removal requires Paused, no waiting or running runs, no background preparation, and no active canary. Stop and reject canaries from their improvement reports; this remains available while paused.
Every still-bound non-terminated instance and fleet definition blocks removal, including stopped instances and fleets with zero desired members. Unknown resource or Run bindings also block it. Use the preview's links to inspect them. For work you no longer need, disable the resource's own triggers and stop its machines before detaching. A deliberate handover keeps the resource and plans under a new binding. The console shows their current state and plans and asks you to confirm that they are being kept, because unbinding alone does not stop execution or charges. Scaling a fleet to zero deletes its members and their disks; it is not a lossless pause.
Removal preserves the ID, reserved name, versions, runs, artifacts, usage, suggestions and product feedback. It turns off direct agent triggers, cancels their automatic OAuth re-enable, and revokes caller keys and session tokens. It does not delete shared project credentials or resource triggers.
Open Agents → Removed to read the history or choose Restore agent. Restore only returns it to Paused. Removal-disabled plans stay off, old keys stay revoked, and resources are not restarted or rebound. A subsequent Resume does not reactivate those disabled plans or credentials; create new credentials and enable plans explicitly when ready.