# fx

> An experimental open-source coding agent from Vercel Labs, shipped as one small native binary with an inline terminal interface and a one-shot `fx ask` mode. Run it in EnvHaven from any browser, signed in once with your own account, and keep it working 24/7; or install it on your own machine.

_Updated November 23, 2026 · Checked against fx 0.0.11 in EnvHaven v1.9.0_

| At a glance |  |
| --- | --- |
| Made by | Vercel Labs |
| Command | `fx` |
| Version checked | 0.0.11, in EnvHaven v1.9.0 |
| License | Apache-2.0, [source](https://github.com/vercel-labs/fx) |
| Documentation | [fx.sh/docs](https://fx.sh/docs) |

## Use fx in EnvHaven

1. Open your workspace in any browser, on a laptop, a tablet or a phone.
2. Tap **Launch**, choose fx and tap **Sign in**: it starts fx, which asks you to sign in the first time. For an API key, choose **Set key** instead and paste `AI_GATEWAY_API_KEY`; the workspace keeps it write-only.
3. Start it with one tap: signed in, fx gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (0.0.11), so there is nothing to install or update.
4. Give it a task. The image sets `FX_PERMISSION_MODE=yolo`, which fx 0.0.11 reports as "mode=full access".
5. Close the tab whenever you like. The workspace is an always-on Linux machine, so fx keeps working, and every device you open it from shows the same session.

Every agent signs in with your own account: EnvHaven never resells tokens or adds a markup.

## Install fx on another machine

macOS, Linux:

```bash
curl -fsSL https://fx.sh/setup.sh | bash
```

## Sign in from the terminal

In a workspace the Launch menu does this for you. On any other machine, or when you would rather type it:

- Run `fx login` for a Vercel account (AI Gateway, the default provider), `fx login codex` for a ChatGPT plan or `fx login grok` for SuperGrok.
- For scripts and CI, set `AI_GATEWAY_API_KEY`.
- ChatGPT Plus, Pro, Business, Enterprise or Edu through its Codex provider, SuperGrok or X Premium through its Grok provider, or Vercel AI Gateway billing.

## Run fx without permission prompts

For every session, as an environment variable (fx 0.0.11):

```bash
export FX_PERMISSION_MODE=yolo
```

fx's default mode, `auto`, sends every unresolved tool call to a reviewer model and bills that request; full access skips the check. Newer releases call the mode `full-access` (flag `--full-access`) and read the old name `yolo` only until 0.0.18, and fx updates itself in the background, so `full-access` is the spelling that lasts. `fx permissions` shows the current mode.

**In EnvHaven:** The image sets `FX_PERMISSION_MODE=yolo`, which fx 0.0.11 reports as "mode=full access". The details, and when full access is safe, are on the [fx full-access page](https://envhaven.com/yolo/fx).

## Instructions file

fx reads `AGENTS.md`, `~/.fx/AGENTS.md`.

## Add MCP servers

```bash
fx mcp add <name> <command> [args...]
```

`fx mcp add --transport http <name> <url>` adds a remote server; servers live in `~/.fx/mcp.json`.

The [MCP config converter](https://envhaven.com/mcp-config) writes the same server for every agent at once.

## Run it from scripts

```bash
fx ask "<prompt>"
```

Headless runs cannot stop to ask, so they need the full-access setting above.

## fx away from your desk

fx keeps working only while the machine it runs on is awake. In EnvHaven that machine is the workspace, which never sleeps: start a task, close the laptop and check on it from a phone.

- [fx in the browser](https://envhaven.com/agents/fx/browser)
- [fx on iPhone](https://envhaven.com/agents/fx/iphone)
- [fx on iPad](https://envhaven.com/agents/fx/ipad)
- [fx on Android](https://envhaven.com/agents/fx/android)
- [fx on a Chromebook](https://envhaven.com/agents/fx/chromebook)
- [fx on Windows](https://envhaven.com/agents/fx/windows)
- [fx on a VPS](https://envhaven.com/agents/fx/vps)
- [fx in Docker](https://envhaven.com/agents/fx/docker)
- [fx on a Raspberry Pi](https://envhaven.com/agents/fx/raspberry-pi)
- [fx 24/7](https://envhaven.com/agents/fx/24-7)

## When fx misbehaves

- [Is fx down?](https://envhaven.com/status/fx) Live status of the providers it depends on.

## Keep reading

- [fx full-access mode](https://envhaven.com/yolo/fx)
- [fx in the browser](https://envhaven.com/agents/fx/browser)
- [fx on iPhone](https://envhaven.com/agents/fx/iphone)
- [fx on iPad](https://envhaven.com/agents/fx/ipad)

Source: https://envhaven.com/agents/fx
