Build on Terminus
Last updated
Terminus provides the infrastructure for anyone to create anything, easily. It can be an app you've always wanted that no one is making, a game you desperately dream of seeing come true, or agents that finish the tedious stuff for you. We promise to keep hosting free, so you can max out your creativity without worrying about the infrastructure behind it.
Get Started
The design philosophy of Terminus is Lego-style: you can design and build any component, and connect them together. Terminus supports four kinds:
- Apps: Apps for you and your agent. You can create apps for yourself, games you can share with your friends, or websites that help you understand things better. Your data belongs to you, and you can download it from the app at any time.
- Agents: Long-running agents that help you get things done, 24/7. Write a prompt that tells one what to do, and it handles things for you.
- Skills: Know-how any agent can load when it needs it, on Terminus or in Claude Code and Codex. Write it once, and every agent can use it.
- Services: Operations that apps, agents and other services can call. Write your own code and host it on Terminus, or register and connect a service you already run.
Set up
We provide a terminus CLI for you and your coding agent to interact with our environment natively. You need to install Node.js 24 or newer on your machine. Install the CLI and sign in:
npm install -g @terminus-ai/terminus
terminus login # a browser tab opens to approve this computerWorkflows
Every creation moves the same way: from an address, to a folder on your machine, to a draft on Terminus, to a release people use.
terminus create <name> # create it, with a folder to build in, its packages installed
cd <name>
terminus dev # run it on your machine
terminus push # upload it to its draft
terminus settings # see and adjust its settings
terminus publish # publish a release
terminus --help # list the commandsCreate and register a creation on Terminus. terminus create <name> registers @you/<name> on Terminus and makes a folder on your machine to build it in, started from a template of its kind.
- It asks what you are making: an app, an agent, a skill or a service. Without a terminal to ask in, as in a script or for your coding agent,
--kindanswers:--kind app,agent,skillorservice. The kind is chosen once, and never changes. - For code you already have,
terminus create <name> .registers it and makes the current folder its folder instead. terminus clone <name>brings a creation that already has files into a new folder, such as on another machine, andterminus link <name>connects a folder to a creation that already exists.
Testing and Debugging. terminus dev gives you a simulator of Terminus to test in before you push: the folder runs as it will on Terminus, and what it opens depends on the kind. Its data is stored in the folder's .terminus/dev/.
- An app runs on test data that never leaves your machine, with its dev tools beside it at each member's address. Apps has the details.
- It sends your folder to its Test world, which builds and runs it there. It never writes the draft: only
terminus pushdoes. - Each folder has a Test world of its own, so two worktrees of one app run side by side without meeting. The desk's Test window runs the draft in another.
--members <n>runs it as several people side by side, each on a port of their own:--members 2, or by name,--members alice,bob.- Your copy of your data is made once, when its Test world starts, and each run says since when.
--freshstarts it again on a new copy of your data. A Test world 120 minutes past its last run is deleted, and the next run starts a new one. --emptystarts it again with nothing in it.- Its schedules and watches run only when you run one: press
tinterminus dev, or Run now in its Test window. --buildbuilds it asterminus pushdoes and serves the build, again each timeterminus devstarts. An app built with Vite updates as you save without it; one built any other way runs this way.--service <folder>runs a service's folder beside it, for its calls. An external service runs on your own server, so--endpoint <url>says where it's running, such ashttp://127.0.0.1:8080, and--endpoint @you/<name>=<url>names each one's when several are external.--port <n>serves it from that port instead of 8868.
- It sends your folder to its Test world, which builds and runs it there. It never writes the draft: only
- An agent runs on Terminus, and you talk to it on the web:
terminus devopens its chat, in the agent's Test on the desk, which picks the conversation up where it stopped, unless--freshstarts a new one. Each save pushes its draft, and its settings are itsterminus.json's.--call "<message>"sends it one message in that conversation and prints the reply, and--file <path>attaches a file or an image to it.--trigger <name>fires one of its triggers, and--file <path>gives a webhook trigger its body.--port <n>takes its webhooks on that port instead of 4720.
- A service written in code is built first, as Terminus runs it, then runs behind a test page of its operations. Services has the details.
--call <operation> name=valuecalls one of its operations and prints the answer. A field that is an object or a list is written as JSON, and--file <path>gives a body of bytes.--remoteruns its draft on Terminus instead, with the secrets stored there.--service <folder>runs another service's folder beside it, for its calls. An external service, this one or one beside it, runs on your own server, so--endpoint <url>says where it's running, such ashttp://127.0.0.1:8080, and--endpoint @you/<name>=<url>names each one's when the run has several.--freshstarts with an empty store.--port <n>serves its test page from that port instead of 4750.
Adjust Settings. terminus settings shows a creation's settings, and terminus settings set <field>=<value> changes them, as its page does, without a new release. listing, open_source, open_to_guests and price wait until you confirm them on the page.
nameanddescription.icon: a square JPEG, PNG or WebP file of 1024 to 4096 px a side and at most 5 MB.icon=takes it off.listing:public(in the Store and search),unlisted(anyone with its address) orrestricted(you and the people you let in).open_source:truelets anyone read its source and fork it for free.open_to_guests:truelets people who aren't signed in try it at its address, and asks them to sign in when something needs an account. It needs a free price and a listing other thanrestricted.price: a plan and its credits, as JSON in quotes, such asprice='{"plan":"subscription","credits":"4.99","days":30}'.- An app or an agent:
free,one_time, orsubscriptionwithdaysof 1, 7 or 30. - A service or a skill:
freeorper_use.
- An app or an agent:
Push and Publish. Pushing and publishing are different acts. A push updates the draft, which only you and your collaborators see. Publishing makes a release people use, and only you do it: terminus publish opens the creation's page on the web, where you confirm it.
Before you push, terminus push --dry-run checks everything the push would, offline, and sends nothing; --verbose shows the build's own output. It's how a skill is checked, as a skill has nothing to run.
Apps
An app runs on Terminus, in a window of its own on the Terminus desktop or in a browser tab. You build it with the web tools you already know, and Terminus gives it the rest: records that work offline and sync across each person's devices, spaces where people share them, a server for what the browser can't be trusted with, work that runs while no window is open, and tools for people's agents. The records belong to the people who made them.
- The convention. The app, and beside it the files that tell Terminus what it is built on:
index.htmlandsrc/: the app's source code. We recommend Vite, which the starters use.terminus.json: the convention file, with the app's address and the version of Terminus it is written against.schema.ts: its collections, its server's operations, and the services and models it calls. Terminus refuses anything it doesn't declare, and agents learn from it what the app can do.src/server/: background operations, compiled and hosted on Terminus.migrations/: a file for each change to how data is stored, named by when it was written, updating the records people already have.
- Data. Records live in the app's collections: each person's own, a space's shared by its members, or one set for everyone.
- They work offline, and a change reaches the person's other devices and a space's members as soon as it lands.
- A space is a group the app brings together, such as a team's board, a family's list or a game's table. People join by an invitation to their handle.
- People can download their records as SQLite files.
- The server. It runs on Terminus, and knows for certain who called.
- Its operations do what the browser can't be trusted with: checking a score, using a secret, writing what everyone shares.
- Its background work runs while no window is open: a job, a schedule, a webhook, or a public page the app watches. It runs as the person it was made for, and can notify them.
- Tools for agents. People's agents may read and write the app's records and run the operations it opens to them, as far as each person allows.
terminus mcp --devgives your coding agent the running app's tools, as the first member unless--member <handle>names another, and the dev tools' own. What it may use of the app's is set on that member's App access page, and starts off.
- Test and publish.
- Under
terminus dev, each member's address opens the app with its dev tools beside it, opened by the button in its corner or ⇧⌥D: its records, sync, clock, agents and log. They take the network offline or make it slow or flaky, move the clock forward, and open another device. - After a push, Test on the app's page runs the draft on Terminus on a copy of your own data. People move to a new release when they press Update.
- Use Draft, under Test's arrow on the app's page or in its right-click menu on the desk, runs your own installation on the draft as it is now, on your real data, wherever the app opens; each push reaches it on its own. It is for the app's owner and collaborators. Before the first release it installs the app, which runs the draft until it is published; after, Use Release goes back.
- On the draft, change a data format in two steps where you can: add the new field or collection beside the old one (it needs no migration file), have the app convert what it meets, and remove the old shape in a later migration. A migration with SQL waits: your installation runs the release until it is published, so prove it with Test first.
- Under
Agents
An agent is a prompt that works for you on Terminus, around the clock. You write what it should do in AGENT.md and give it a model and tools. It answers when you talk to it, wakes on its own on a schedule, a webhook or a page it watches, and tells you when it has something to say. Once published, it works the same way for whoever installs it, with their own accounts.
- The convention. One folder.
terminus.json: what it is.AGENT.md: its model, its tools and what wakes it in the frontmatter, its instructions below. Other files in the folder ship with it.skills/<name>/SKILL.md: its own skills, which ship with it. Their descriptions say when it uses them.
- Tools and models. It can use services, the web and running code among them, load skills, and ask other agents. A skill's description says when to use it;
whenon a tool says it for this agent. People can switch it to another model. - Triggers. A schedule, a webhook or a change on a public page wakes it on its own. A run with something to say notifies its person; an empty reply sends nothing.
Skills
A skill is know-how an agent loads when it needs it: instructions, and the files that go with them. Write it once, and it works in Terminus's own agents and in Claude Code and Codex.
- The convention.
SKILL.mdholds the instructions, and the files beside it go with them. Its description says when to use the skill, and agents choose skills by it. - Use skills.
terminus skills install @acme/pdfadds one to Claude Code or Codex, and--agent claude,codexorbothpicks which.
Services
A service is a set of operations that apps, agents and other services call by its address. Write your own code and host it on Terminus, or connect an API you already run.
- Hosted or external.
- Hosted: your own code in TypeScript, Rust, Python, Go, C or C++, which Terminus runs for each call.
- External: an API you already run, joined through its OpenAPI document. Terminus can sign each call for your server to check, and a connector works in each person's own account, through their sign-in or their key.
- The schema and the code.
- The schema declares each operation: what it takes, what it answers, and the hosts and secrets it may reach. Terminus checks every call and every answer against it.
- The code answers each operation, with the input already checked, and gets the service's secrets, its settings, a cache and a store of its own.
- Secrets and variables. A secret, such as an API key, is typed once at a hidden prompt and never read back. A variable is a setting the service reads, changed without a release.
Terminus Conventions
Every creation is made with the same tools: the terminus CLI, which you and your coding agent run on your machine, and the SDK, which apps and TypeScript services are written with.
- The CLI.
terminusis how you and your coding agent work on creations from your machine.terminus --help --alllists its 19 commands, andterminus <command> --helpprints each one's options.npm install -g @terminus-ai/terminus@latestupdates it.
- The SDK.
@terminus-ai/sdk: an app's pages reach records, spaces, files and notifications through it, and a schema is written with it. Server code imports@terminus-ai/sdk/service.- The CLI keeps the package of the version a folder pins in its
.terminus/sdk/, as Terminus serves it now, and itspackage.jsonlinks it as"@terminus-ai/sdk": "file:.terminus/sdk", whichterminus createwrites.terminus create,clone,devandpushkeep it; in a folder you got withgit clone,terminus sdkkeeps it.
- The CLI keeps the package of the version a folder pins in its
- Versions. Every creation pins the version of Terminus it is written against,
terminus_versionin itsterminus.json, and keeps working as Terminus moves on.terminus updatemoves a folder, and its SDK, to the newest version.
Questions, or something missing from these docs? Write to support@terminus.build.
For your coding agent
www.terminus.build/docs.md