Agent protocol

Read how an external agent connects to your workspace, follows the documentation method and submits changes for review.

Give your agent this address: https://fileaify.com/agent/executor

The technical protocol below is maintained in English. This page displays the same source as the raw endpoint used by agents.

Connect a web agent

In your tool’s custom connectors, enter Fileaify and this URL:

https://fileaify.com/mcp

OAuth opens Fileaify to select your workspace, projects, permissions and duration. No secret key to copy. Connecting grants no secret access.

Claude: custom connector with automatic OAuth registration or published identity. ChatGPT: OAuth MCP connector, subject to the features available on your account.

Fileaify agent API — Executor — The workspace executor: SSH destinations

Part of the Fileaify agent protocol. Start page and index: /agent. Everything in one document: /agent/full.

Executor

Start duration. The human Start button and accepted executor.start requests start a one-hour session by default on every eligible plan. Humans may select 10 minutes, 30 minutes or 1 hour (Solo and above); 2 or 5 hours (Pro and above); or no scheduled stop (Premium/Enterprise). The UI calls human-only POST /api/v1/executor/start with duration_seconds (600, 1800, 3600, 7200, 18000 or null). Availability is enforced on the server. A limited plan's remaining budget may shorten the session; the deadline counts from launch, including startup. A new start call does not extend a running session. stop_at reports the effective deadline. The worker, VM lease and provider termination schedule enforce it, with short safety margins; running jobs end when the executor stops. Existing running instances keep their previous deadline policy until the next launch.

The executor is a small server dedicated to the workspace owner's account that uses the workspace's declared SSH keys for the agent, so the key never reaches the agent's machine or conversation. A human starts it from the workspace header; the time it may stay on depends on the plan (Solo 1 h per 6-hour window, Pro up to 12 h per day, Premium always on, Free none; the outgoing IP changes at every start unless a Pro or Premium owner turns on the "Fixed IP" option). Its only inbound door is the direct-SSH port range (TCP 41000–48999, one port drawn at each start, key authentication only; see below); the header shows its state (red, orange, green), remaining time and outgoing IP.

The root@HOST example below connects to Fileaify’s project sandbox, not to the user’s production server. It does not require the user to provide a root credential for an external system. Connections to external servers use separately configured destinations, accounts and credentials. Choose privileges appropriate to the task; using Fileaify for documentation requires none of these connections.

The server rechecks current identities and permissions before dispatching queued work, resolving SSH secrets and accepting results. A queued job keeps its original secret-use reservation: a single-use grant is not consumed twice, and a replacement grant cannot revive a revoked reservation. Unavailable execution authority fails jobs with authorization_revoked. A right that merely reaches its expiry lets an already started job finish (five minutes at most); revocation, suspension or archiving cut it at once. Worker heartbeats also remove unauthorized SSH sessions and cancel local running jobs; this requires a successful exchange with Fileaify and cannot undo effects already triggered on remote servers. SSH commands are refused until sandbox setup has completed. Bootstrap logs are operator-only and are not returned as job output.

If the executor is stopped (budget used up, plan change, user), pending jobs fail with executor_stopped; do not retry automatically. The same calls exist as MCP tools: executor_sandbox, executor_targets, executor_ssh_run, executor_run, executor_job, executor_ssh_access, executor_ssh_sessions and executor_ssh_revoke (same names as REST paths, same permissions). A connector obtains executor.run and executor.start through request_access; consent never grants them.