Node.js agent
A native libfx agent. Each request starts a new conversation.
full-access | Disable fx permission checks. Shown as "full access" in the interface. |
### Auto mode
`auto` is the default permission mode. It runs routine development actions directly and reviews other actions before running them.
**Runs directly**
- Read files and search code or the web
- Create or edit ordinary project files
- Run recognized project commands, including `git status`, local dependency installs, tests, builds, and development servers
**Reviews first**
- Run unrecognized or dynamic shell commands
- Overwrite files outside the workspace
- Change sensitive configuration
- Call an MCP server tool
For reviewed actions, fx sends the exact action to a model that checks for two problems: prompt injection, where instructions planted in a file, web page, or tool output make the action delete or overwrite files, send data out, run outside code, weaken security, or use credentials you didn't ask for, and harm to your machine, such as wiping your home directory, installing malware, or sending your secrets somewhere you didn't ask for. Everything else runs, including deleting code or tests, pushing branches, running scripts the agent wrote, editing files that contain instructions, and following a tool's own instructions to read, search, build, test, or run its next step, such as a git hint or a workflow tool's next command. To hold an action, the model must quote the text that shows the problem, and fx checks that the quote is really there. When the model flags a problem with that proof, fx asks for a second review of the same action and runs it only if that review clears it. If a review cannot finish, fx also holds the action. A held action doesn't open a prompt or end the turn. fx tells the agent why, and the agent can try another way.
The review model depends on your [provider](https://fx.sh/docs/getting-started/authentication.md#model-providers):
| Provider | Review model |
| --- | --- |
| AI Gateway | `openai/gpt-5.6-luna` by default; configurable |
| Codex | `gpt-5.6-luna` |
| Grok | `grok-4.5` |
| Custom connection | Its `reviewer_model`, or the selected model |
To choose another AI Gateway reviewer, add `review_model` to `~/.fx/settings.json`:
```json
{
"review_model": "typesafeai/jev"
}
```
`FX_REVIEW_MODEL` overrides it for one process. The setting accepts an AI Gateway chat model ID or `typesafeai/jev`. Jev uses AI Gateway unless `TYPESAFE_API_KEY` is set, in which case fx calls TypeSafe directly. Jev answers without quotes, so fx keeps its decisions as returned, with no quote check or second review. Codex and Grok use their fixed reviewers. Custom connections use their own [`reviewer_model`](https://fx.sh/docs/configure-fx/custom-model-connections.md#connection-fields).
Each model review uses tokens and can add to your [usage and costs](https://fx.sh/docs/using-fx/usage-and-costs.md#additional-model-requests). Actions allowed or denied by your rules do not need a model review.
To change how fx handles a matching action, add a [persistent rule](#persistent-rules) that allows it, denies it, or asks for your approval.
### See your permissions
In the interactive shell, `/permissions` opens a panel above the composer. It shows the mode, your configured rules, the grants collected in this session, and the rules saved with this conversation, with their IDs. Esc closes it, and it leaves nothing in the conversation.
### Change the mode
In the interactive shell:
```bash
/permissions ask
```
```bash
/permissions auto
```
```bash
/permissions full-access
```
`/permissions reset` switches back to `ask` and clears the grants collected in this session. fx saves the mode you choose as `permission_mode` in `~/.fx/settings.json`, so later sessions start in it.
With several [instances](https://fx.sh/docs/using-fx/instances.md) open, these commands and `shift+tab` change the instance on screen. On a [subagent's screen](https://fx.sh/docs/capabilities/subagents.md#switch-to-a-subagent), they change that subagent. An [agent profile](https://fx.sh/docs/configure-fx/agent-profiles.md#permission-mode) can also set the mode an agent starts in.
From your terminal, inspect the effective mode and rules:
```bash
fx permissions --json
```
To set the mode for one interactive session or `fx ask` request, pass `--permission-mode A native libfx agent. Each request starts a new conversation.
libfx runs in this browser through WebAssembly. Reload to start a new conversation.
Leave blank to use our proxy with some free tokens. Enter your own key to connect directly to AI Gateway using your balance. Your key is not saved. Changing it starts a new conversation.
A native libfx agent in an App Router route. Each request starts a new conversation.
{status}
A native libfx agent in a Nitro route. Each request starts a new conversation.
{{ status }}