# Remote and phone access

> Following AgentForge from a phone: HTTPS on one network address, QR pairing, a key and permissions per device, the phone page, webhook and notifications.

- Canonical: https://www.zekfy.com/docs/remote-and-phone-access/
- Türkçe: https://www.zekfy.com/tr/dokumanlar/uzaktan-ve-telefon-erisimi/
- Last updated: 2026-12-04

AgentForge lets you follow a long [mission](https://www.zekfy.com/glossary/#mission) from your phone while you are away from the computer. Remote access is off by default; when it is on, each device receives its own key and its own set of permissions.

## What can and cannot be done

| Possible from the phone                                  | Not possible from the phone                  |
| -------------------------------------------------------- | -------------------------------------------- |
| Follow the agents and the board                          | Change settings                              |
| Stop all running agents (if permitted)                   | Read or write files                          |
| Create a task, with photos (if permitted)                | Perform git operations                       |
| Send [Main Brain](https://www.zekfy.com/glossary/#main-brain) a typed or spoken command (if permitted) | Type into a terminal                         |
| Answer a low-risk or medium-risk approval (if permitted) | Approve a high-risk or critical-risk request |
| Reject a request at any risk level (if permitted)        |                                              |

## Turning it on

1. Open Settings › Remote access and turn **Remote control** on.
2. By default the panel listens on this computer only (`http://127.0.0.1:4765`). For a phone, choose **one** network address of this computer under **Listening address**, for example your home network address or a Tailscale address (`100.x`). Opening it to all networks at once (`0.0.0.0`) is not supported.
3. Save. On a network address the panel opens over HTTPS only (`https://`), and the address to open on the phone is shown in the same section.

The phone and the computer must be on the same network, or both must be on Tailscale.

## The certificate and its fingerprint

On a network address this computer makes its own certificate, so the phone shows a certificate warning on the first connection. Before continuing, compare the fingerprint the phone shows with **Certificate fingerprint (SHA-256)** in Settings › Remote access, and continue only if they match.

Clicking through the warning without comparing the fingerprint only protects against someone quietly listening: someone on the same network who intercepts at that moment can capture the pairing code and the key. The warning comes back after the yearly renewal and after **Regenerate certificate**, so compare the fingerprint again each time. On networks you do not trust, use Tailscale.

## Pairing a phone

1. On the desktop, open Settings › Accounts & devices › Devices and press **Generate pairing code**. The code is single-use and valid for at most 10 minutes; after 5 wrong attempts it stops working.
2. Scan the QR code with the phone camera, or open the panel address on the phone and type the code. The QR code is made only for an encrypted address the phone can reach, so choose a listening address first.
3. The phone shows a confirmation code. If the same code appears under the device awaiting approval on the desktop, press **Approve this device** and select its permissions. No key is generated before approval.
4. The phone receives its own key. The key is stored on the computer's disk only as a hash.

## The phone page

After pairing, the phone browser shows a page with four tabs:

| Tab       | What it does                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------- |
| [Office](https://www.zekfy.com/agentforge/features/office/)    | Shows the agents of the open projects and whether each one is idle, working, waiting or closed    |
| Tasks     | Shows the board; **New task** creates a task with a title, a description and up to 6 photos       |
| Approvals | Lists the pending requests with their risk, to approve or reject                                  |
| Command   | Sends Main Brain a goal, typed or spoken                                                          |

- To speak a command, hold the microphone button, speak for up to 30 seconds and release. The text appears in the box, and you can fix it before sending. The speech is turned into text on the computer, and the microphone works only on the `https://` address.
- Photos can be PNG, JPEG, GIF, WebP or BMP, up to 12 MB each. A phone can upload up to 200 MB of photos a day.
- **Stop all** stops the running agents. It asks for a second tap before it sends.
- If a weak connection sends the same request twice, the work is not done twice.
- Tasks, commands and speech need the AgentForge window to be open on the computer.

## Permissions

A device's permissions are chosen when the pairing is approved and are stored in its record:

| Permission | What it allows                                                                    |
| ---------- | --------------------------------------------------------------------------------- |
| `read`     | Reading status and the live stream                                                |
| `stop`     | Stopping all running agents                                                       |
| `approve`  | Approving a low-risk or medium-risk request, and rejecting any request            |
| `command`  | Sending a command to Main Brain, creating tasks with photos and using the webhook |
| `message`  | Reserved; it opens no endpoint today                                              |

- With no selection the device gets `read` and `stop` only.
- An unknown value grants nothing.
- Even with the `approve` permission, a request that is high-risk, critical-risk or whose risk cannot be verified cannot be approved from the phone; it can only be rejected.
- The live stream carries terminal output, so it opens only for a device with the `read` permission.

Devices paired in an earlier version drop to `read` and `stop` after upgrading. If you use the webhook or approvals, grant the permission to the device again.

## Revoking and emergency shutdown

- Settings › Accounts & devices › Devices lists the paired devices, and each one is revoked with one click. Revoking takes effect at once: the device key is refused on its next request, and its open live stream closes.
- **Emergency shutdown** invalidates all device keys and turns remote access off. Afterwards you turn it back on and pair your phones again.
- On the phone, **Forget the key on this phone** removes the key from that phone.

## Authentication

Every `/api` call requires the `Authorization: Bearer <key>` header. The key is compared in constant time. After 10 failed attempts in a minute the client is temporarily refused with a `429` response.

## Webhook

The `/api/webhook` endpoint passes a command to [Main Brain](https://www.zekfy.com/glossary/#main-brain). The request needs a key with the `command` permission:

```bash
curl -X POST http://127.0.0.1:4765/api/webhook \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{"command": "run the tests and report the result", "root": "C:/path/project"}'
```

The `root` field is optional and says which project the command runs in. The example uses the default address on this computer; when a network address is chosen, send the request to the `https://` address shown in Settings instead.

## Notification channels

AgentForge shows operating-system notifications for a request awaiting approval, an agent asking a question, a [parked card](https://www.zekfy.com/glossary/#parked-card) and a finished mission; approval requests, finished missions and budget events are also delivered to the channels you configure.

| Channel                       | How it works                                                                                                                 |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Operating-system notification | Shown when the window is not focused; the same notification is not repeated within 10 minutes                                |
| Tray icon                     | The tooltip shows the number of pending approvals                                                                            |
| Telegram                      | The bot works by long polling without opening an inbound port and accepts commands and approvals only from whitelisted chats |
| Discord, Slack                | Notifications are sent to a webhook address                                                                                  |
| Custom webhook                | An approval request, mission completion and budget events are reported to an address                                         |

From Telegram too, only low-risk and medium-risk approvals can be given; a high-risk or critical-risk request is directed to the desktop. Notification kinds are turned off one by one under Settings › General › Notifications.

## Security note

On a network address the connection is encrypted with HTTPS, but this computer makes the certificate itself; compare the fingerprint as described above. The phone page carries the device key in an address parameter when it opens the live stream. To use the whole interface from another device, see the [Web mode](https://www.zekfy.com/docs/web-mode/) guide; web mode opened to the local network still uses unencrypted HTTP and grants wider permissions than the phone page. To carry on with the work somewhere else, cloud sync in the Web package carries the project files and the board to the web [workspace](https://www.zekfy.com/glossary/#workspace); see the [Cloud sync and the web workspace](https://www.zekfy.com/docs/cloud-sync/) guide.

## Related pages

- [Security](https://www.zekfy.com/agentforge/security/)
- [Web mode](https://www.zekfy.com/docs/web-mode/)
- [Cloud sync and the web workspace](https://www.zekfy.com/docs/cloud-sync/)
- [Troubleshooting](https://www.zekfy.com/docs/troubleshooting/)
