Projects on your servers
You can keep a Code or Work Project in a folder on one of your own servers. Octant reaches the server with ssh on this computer, signed in through your own SSH agent, and never falls back to this computer when the server cannot be reached.
To make the server a full Octant computer instead, see Add a computer over SSH, which describes an open pull request that is not yet in a release.
Bind a folder
- Register the server in Settings → Permissions → Servers: the host alias from your SSH config and the user you sign in as. See Your servers over SSH.
- Connect to it once yourself with
sshin a terminal, so its host key is in your known hosts. Octant never accepts a new or changed host key for you. - Under Projects on your servers, choose Code or Work, give the Project a name, choose the server, and type the folder's path on the server. Octant checks over SSH that the folder is there before it binds it, and stores the folder's real path.
A window on this computer or a device you paired yourself can bind, rename, remove, and work in a server Project (including its actions and tools). A hub-introduced or restricted device stays restricted and cannot administer or mutate server Projects.
What Octant does and does not do
- Octant uses this computer's own
ssh, your SSH config, and your SSH agent. It names no key file, reads no key, writes no SSH config, and forwards nothing to the server: no agent, no ports, no windows. - Octant keeps one connection to each server open while you work and closes it after a quiet minute, so Git and the file tools do not log in for every step. When the server cannot be reached, or the connection drops, that call fails and nothing runs on this computer instead; the next call logs in again.
- Removing a server from Servers keeps its Projects, but they cannot connect until you register the server again or remove them.
- While a Project is bound to a server, that server's alias and user cannot change, since its folder was checked on that host. To move, remove the Project or register the new address as another server. Its profile can still change.
- Any login shell works, fish and tcsh included. The server needs a POSIX
sh.
Work in a server Project
Server Projects are listed in the Code sidebar under On your servers. Choose one to start a thread there.
- Octant Harness only. A thread in a server Project runs on a model the Octant Harness runs. Other runtimes act on this computer's files, so the composer shows them as unavailable there. (Open pull requests add Codex and Claude Code running on the server itself; see Run Codex or Claude Code on the server.)
- Files, commands, and Git run on the server. The agent reads and edits files in the folder on the server and runs commands there, Git included. Every command is recorded with the server and its exit status.
- The same access levels. Plan, Ask first, Accept edits, Auto, and Full access mean what they mean in any Code Project. Octant cannot sandbox a server, so below Full access every command asks again, even when you allowed commands earlier in the thread. Full access asks nothing.
- Protected files. Octant's file tools, the Files panel, and search refuse the list in Settings → Permissions → Protected files on the server too, at every level, your changes included. A command is different: it can read anything your server user can, so what guards it is the access level. Ask first asks you, Auto hands it to its reviewer, and Full access asks nobody.
- Auto follows the server's profile. With Octant Shield reviewing, a server's action profile caps what passes without asking: a Read-only server gets reads only, and edits in the folder need Admin. Everything a server sends back is treated as possible outside content.
- Terminals. A terminal in the thread is a login shell in the folder on the server. When the connection drops, the terminal ends.
- Project terminal. The start screen has no tools; once a task starts in a server Project, its terminal is a login shell in the folder on the server. Saved Project actions are described below.
- Git tab. Choose Git on the thread's checkout bar to see the changes in the folder on the server, stage, commit, and push. Git runs on the server with the server's own Git setup. At Plan it changes nothing.
- Review. The dock's Review tool shows the working tree, local commits, and history of the folder on the server, read by Git there.
- A worktree of its own. In the composer, open the chip that shows the branch and choose New worktree to start the thread on a new branch in its own worktree on the server, beside the Project's folder, from the branch you pick. The Project's folder must be its repository's top folder. Octant never removes that worktree; remove it on the server when you are done (
git worktree remove). Plan cannot start a thread in a new worktree. - Pull requests. Push the thread's branch from Git, then choose Create pull request on the checkout bar. Octant opens it with this computer's GitHub sign-in, on the GitHub repository of the remote on the server.
- Files and Tests. The Files panel lists the folder on the server, and files open and save there. Choose Refresh to see changes made on the server, since the folder is not watched. The Tests panel runs the tests your
package.jsonor.octant/tests.jsondefines, on the server, under the thread's access level. A save is refused when the file changed on the server after you opened it. - Attached files. Any file you attach to a Work or Code thread in a server Project that is named by path is copied over the Project's SSH connection into
~/.octant/thread-attachments/<thread>/on the server (read-only0400, digest-verified), readable only by that thread. When you delete or purge the thread, or mark it Leave no trace, Octant removes that folder over SSH. If the server cannot be reached, deletion is never held up: Octant records a pending removal and retries on the next successful SSH connection to that server. When you remove a whole server Project while its server is unreachable, the removal notice names the attachment folder left on the server so you can remove it yourself. - Not available there yet: connectors and plugins, Browser and Computer, subagents, forks, checkpoints and restoring files, and searching across the folder. Ask the agent to do it on the server, or use a terminal.
Run Codex or Claude Code on the server
Unmerged preview work
This section describes behavior in open pull requests #2775 (Codex) and #2781 (Claude Code), which are not yet in a release.
In a Code Project on a server, a thread can run Codex or Claude Code on the server itself, as the real program, signed in there, while the thread stays in Octant on this computer. Octant starts the program in the Project's folder over the Project's SSH connection and talks to it there. Nothing needs to be installed on the server except that program. Approvals, Stop and the thread's history stay on this computer.
Before you start
- Install Codex or Claude Code on the server so an SSH login finds it on its
PATH. If it is missing, the turn is refused with a sentence naming the server. - Set up the same provider on this computer too, under Settings → Providers & Models. Octant offers it in a server Project only once this computer has checked it, and its model list comes from this computer.
- Sign in on the server. The provider uses the server login's own sign-in. Octant never copies a sign-in or a key from this computer, including a Claude API key or gateway key: on the server, Claude Code signs in as that login. Sign in once on the server, for example from the Project terminal with the provider's own login command. If Codex cannot start because it is not signed in, the thread says to check that.
Choose it in a server Project
Open the server Project, and in the composer choose Codex or Claude Code. The first time you pick one for a server, the composer says once what that means:
- the provider runs on that server as itself, and its sandbox and plan mode are the provider's own. Octant cannot sandbox anything on that server;
- its requests to its model leave from the server, not from this computer, so this computer's network limits do not cover them;
- approvals, Stop and the thread's history stay on this computer.
After that, Details keeps the notice one click away.
How access levels apply
- The thread's access level maps to the provider's own sandbox and approval settings, as it does on this computer. At Full access the provider runs on the server with no sandbox, as it would on its own there.
- Plan runs in the provider's own read-only plan mode. Claude Code's Plan on a server has no shell.
- Strict refuses it, saying why: Strict needs Octant's own sandbox, which cannot run on a server. Turn Strict off for that thread to run the provider there. A Claude Code thread that keeps Octant's sandbox at Full access is refused the same way.
- The protected files list is matched by name on the server. Below Full access, Claude Code's searches stay in the Project's folder there.
What is not offered there
- Any other provider, OpenCode, Pi and the ACP agents included. Their Octant tools would have to reach this computer from the server, so they stay unavailable in a server Project.
- Work Projects on a server, which stay on the Octant Harness.
- This computer's checkout tools, extensions, attachments folder, Browser, Computer, forks and checkpoints. Only the routine tools join the provider's own.
- Anything of this computer's Claude account: Claude Code on the server reads the server's own instruction files and settings, starts with an empty task list, and has no Artifact tool.
A rewind sends the conversation so far as text, as for any server thread. Claude Code resumes its own session on the server when the server still has it; otherwise the thread carries on from that text.
Saved server Project actions
In Settings › Permissions › Servers, expand Actions under a bound Code Project. A Work Project first needs its default-off Developer tools switch, Show developer tools for your Project, enabled in that row. The switch reveals the action controls and your Project terminal; it grants no task execution or credential permission and adds no general Developer tools pane. Save up to twelve named, one-line commands, each with a folder relative to the Project. Package scripts and Makefile targets read from that server are suggestions: choose Add, then Save. Reading or adding a suggestion runs nothing. If another window saved first, your draft remains until you explicitly choose Reload current actions to replace it.
If this window has not opened the Project, choose its Open button first. This opens a new task draft there; it does not start an agent. You can still edit and save the action list without opening its files.
Choose Run beside an action, or open it from the active Code Project's header or command palette. Work exposes these controls for its active Project when Developer tools is shown. Review the exact login, server profile, canonical folder, branch and current task policy before launch. An active Code task defaults to its actual server checkout. An active Work task uses its actual server binding and task folder; choosing the Project folder is explicit. The review states No OS confinement on the server. Code Plan and hub-introduced or restricted device launches are refused; a device you paired yourself can launch actions as a local window does. Saved actions do not run automatic worktree setup recipes.
Each run uses its own SSH command, so it never types into a busy terminal, copies host credentials or falls back to this computer. A changed action, server, profile, folder identity, Git state or task makes an old review stale; review it again. Output and exit status appear in the run's transcript. Work runs accept no interactive input and offer output and Stop, without a general-terminal handoff. A changed Work task access/model/binding, completed task, disabled Work mode, a closed window or a switched window Project refuses or ends its owned connection.
Stop and revocation stop the owned connection; they cannot prove every remote descendant stopped. A dropped SSH connection leaves remote completion uncertain and is never retried automatically. Check the server and choose Prepare another run before deciding to run again.
Work Projects on a server
A Work Project on a server is listed in the Work sidebar under On your servers. Choose it to start a Work thread there.
- Octant Harness only, with files and commands on the server. The agent reads and edits files in the folder on the server and runs commands there, under the thread's access level. Below Full access every command asks again, and every command is recorded with the server and its exit status.
- Nothing of this computer. A Work thread there has no Browser, Computer, extensions, image generation, or file mentions, and starts without an issue or a terminal session. It stays in the Project's folder: it cannot be moved to another Project or folder.
- Not available there yet: the Work Files panel, research sources, the Project's status file and due dates. Your Project terminal is described below.
Routines on a server Project
A Work or Code routine can target a Project on a server. This computer's scheduler runs it, and each run's turn works on the server exactly as one you started would: on the Octant Harness, over the Project's connection, under the same access level and approvals. A Code run makes its own worktree on the server from the branch the Project's folder has checked out; a Work run works in the Project's folder.
- Making one. In Automation Center's routine editor, the Project list shows your Code or Work Projects on servers beside those on this computer, each named by its server alias and folder. A server Project's routine runs on Octant Harness models only, so the editor offers only those. You can also confirm a routine the agent proposes in one of the Project's threads (see Create a routine from a thread); it binds the Project, not the thread's worktree.
- What is refused. Each run checks the routine again. If you removed the Project, the server left Servers, or the Project's mode or folder no longer matches, the run is refused with the reason and the routine is paused. A file-arrival routine cannot target a server Project, because it watches a folder on this computer: the editor offers no file trigger for one and says why, and saving one is refused.
- An unreachable server fails the run. If the server cannot be reached or the folder is gone, that run fails with a reason naming the server before any thread is made, and nothing runs anywhere. The routine stays on for its next run.
- Who sees them. You, at a window on this computer or on a device you paired yourself. A restricted device sees no server Projects in the editor and none of their routines.
Your server Work Project terminal
- In Settings › Permissions › Servers, find the Work Project and turn on its default-off Show developer tools switch.
- If this window has not opened that Work Project, choose its Open button first. Opening the Project creates a task draft; it starts no agent or shell.
- Choose Open terminal. Before launch, the row shows the real
user@alias, folder and Full access notice.
This is your own SSH shell, with the permissions of that server user. Octant cannot confine it on the server. It starts at the Project root, independently of a task: you cannot choose a task checkout or another folder for its start. Opening it gives no task, provider, credential or Browser permission. It uses the registered SSH connection rules and copies no host credentials; an unavailable server never starts a local shell instead. A window on this computer or a device you paired yourself can operate it; a hub-introduced or restricted device or an agent cannot.
Type and resize in the terminal, use Stop terminal in its menu, or choose Close terminal. Closing the panel or Settings stops only the SSH session it opened, including an acquisition that finishes after the panel closes. Switching or closing the window, turning off Work or Developer tools, or removing/changing the binding or registered server profile also retires that session. A host restart does not restore it. The ordinary Work dock and Developer tools pane are not enabled by this feature.
Closing SSH cannot prove every remote program ended. A dropped connection ends the terminal without restarting it. A lost start or input reply is never replayed; inspect the server before opening another session. Hiding Developer tools closes your shell while already admitted saved Work actions keep their separate authority: those actions still have closed input and reject terminal writes, including runs without a task.
- Files. Open Files in the thread dock to see names and sizes in the folder on the server. Choose Refresh to read it again. The panel names the server location and keeps rows read-only: there is no opening, preview, download, editing, folder watch, or attribution of files to Work output. Hidden entries, links, and protected files are omitted. A bounded or partial listing says it is incomplete. The server needs GNU or BSD
statfor sizes. If the connection or your access changes during a read, Octant withholds the result and never tries a folder on this computer instead. This panel is available to the local window, not a paired device. - Not available there yet: file previews and editing, research sources, the Project's status file and due dates, and the Project terminal.
Testing
- Tested on a throwaway local server only. Octant's tests ran this against an
sshdstarted on this computer for the test, never a real server.
Open a dev-server preview
In Settings › Permissions › Servers, expand Dev server preview under the bound Project. Start the dev server on your server first. Enter its port on 127.0.0.1 and choose a local port, or leave Local port at 0 to use an available port. Select Start preview, then Open preview.
The preview shows both endpoints and belongs to the local window that opened it. HTTP and WebSocket hot reload use the same tunnel. It listens only on this computer's loopback, supports eight simultaneous connections and closes after one hour. If the server is already a paired Octant host, use its existing paired-host preview instead.
Unmerged preview work
The list of what the server serves, and the note on who can reach the local address, are in open pull request #2755, which is not yet in a release.
Dev server preview also lists what your SSH login serves from the Project's folder, under Running on the server: each listening port with its process's short name, read on the server with lsof or ss. Choose Preview on a row to start the preview for that port. Only the local window reads the list. A server with neither tool says so, and the list says when nothing is listening from the folder.
The preview carries raw TCP, so it is not limited to web pages: a database on the server, for example, is reached at the local address with its own client. The local address is on this computer's 127.0.0.1. Agents' guarded commands cannot reach it unless you give that thread a local-service grant for the port, but a Full access thread, and a provider that does not go through Octant's network proxy, can.
Stop preview closes the tunnel and leaves the dev server running. Removing the Project or its registered server, or revoking the window, also closes it. After the owning window closes or the hour runs out, another window can start a new preview for the Project. A dropped SSH connection shows lost. Reconnect same endpoint keeps the same ports and server binding and never restarts the remote program. A local port collision refuses; stop the preview before selecting another port. Unknown or changed SSH host keys still require your ordinary SSH trust decision. Listening locally means the tunnel is ready to connect; the remote application is checked when you open it. Previews are not restored after restarting Octant.
Stop and reconnect wait for the previous listener and SSH connections to close. If Octant reports cleanup-unsettled, it could not confirm cleanup within three seconds. It keeps ownership of the old connection and refuses to replace it. You can try Stop again after the process has ended. Shutdown reports this failure rather than claiming that all owned resources closed successfully.
Forward a port from the server
Unmerged preview work
Forwarding any port from a server Project is in open pull request #2788, which is not yet in a release.
To reach a service that is not a web page, such as Postgres on 5432, use Forward a port under the bound Project in Settings › Permissions › Servers. Enter the port on the server and select Forward port. Octant listens on this computer's 127.0.0.1, on the same port number when it is free here and another free port otherwise, and carries each connection to that port on the server's 127.0.0.1 as raw TCP. Connect with the service's own client at the local address the row shows.
Anything running on this computer can connect to a forwarded port, and the row says so. It supports eight simultaneous connections, closes after one hour or when you select Stop forward, and is not restored after restarting Octant. Only a window on this computer can forward a port; a paired device cannot. Each forward is recorded with its ports, never the server's address. Stop forward waits for its connections to close the same way, and reports cleanup-unsettled the same way.