{"name":"fx: A Tiny, Open, Embeddable Unix-like Coding Agent in Zig","description":"fx is an experimental, open-source coding agent CLI written in Zig, designed to be small, native, and embeddable. It offers a Unix shell-like interface for interacting with various AI models, providing a flexible tool for developers. This agent supports multiple AI gateways and custom model connections, making it highly adaptable to different workflows.","github":"https://github.com/vercel-labs/fx","url":"https://osrepos.com/repo/vercel-labs-fx","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/vercel-labs-fx","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/vercel-labs-fx.md","json":"https://osrepos.com/repo/vercel-labs-fx.json","topics":["Zig","AI Agent","CLI","Developer Tools","Vercel Labs","Open Source","Unix-like","Coding Assistant"],"keywords":["Zig","AI Agent","CLI","Developer Tools","Vercel Labs","Open Source","Unix-like","Coding Assistant"],"stars":null,"summary":"fx is an experimental, open-source coding agent CLI written in Zig, designed to be small, native, and embeddable. It offers a Unix shell-like interface for interacting with various AI models, providing a flexible tool for developers. This agent supports multiple AI gateways and custom model connections, making it highly adaptable to different workflows.","content":"## Introduction\n\n`fx` is a powerful, Unix-like coding agent CLI developed by Vercel Labs. Written in Zig, it's a small, native binary that is open source under the Apache-2.0 license, model-agnostic, and designed to be embeddable in larger systems. Its interface prioritizes a shell-like experience over a traditional IDE in the terminal, offering a streamlined approach to AI-assisted coding.\n\n## Why Use fx & Key Features\n\n`fx` stands out for its flexibility and integration capabilities, making it a valuable tool for developers looking to leverage AI in their workflows. Here are its core highlights:\n\n*   **Any Model**: Connect to various AI models, including Vercel AI Gateway, ChatGPT, Grok subscriptions, or your own OpenAI-compatible endpoints like Ollama or OpenRouter.\n*   **Any Interface**: Utilize an interactive shell, perform one-shot requests with `fx ask` for scripts, or embed the agent through `libfx` and ACP.\n*   **Shell-like Output**: Enjoy inline rendering that preserves your terminal scrollback, maintaining a familiar command-line experience.\n*   **Extensible**: Expand its capabilities with skills, MCP servers, and subagents, allowing for deep customization and integration.\n\n## Installation\n\nTo get started with `fx`, simply run the following command in your terminal:\n\nbash\ncurl -fsSL https://fx.sh/setup.sh | bash\n\n\n## Examples\n\nAfter installation, you'll need to sign in. You can choose from several options:\n\n*   `fx login`: For Vercel AI Gateway.\n*   `fx login codex`: For ChatGPT subscription (OpenAI Codex OAuth).\n*   `fx login grok`: For Grok subscription (xAI OAuth).\n*   `fx setup`: Using an AI Gateway API key.\n\nOnce logged in, you can start the interactive shell from your project directory:\n\nbash\ncd your_project\nfx\n\n\nAlternatively, make a one-shot request directly from your terminal:\n\nbash\nfx ask \"explain the changes in this repository\"\n\n\nInside the interactive shell, type `/help` to explore available commands.\n\n## Links\n\n*   **GitHub Repository**: [https://github.com/vercel-labs/fx](https://github.com/vercel-labs/fx){:target=\"_blank\"}\n*   **Official Documentation**: [https://fx.sh/docs](https://fx.sh/docs){:target=\"_blank\"}\n*   **Installation Script**: [https://fx.sh/setup.sh](https://fx.sh/setup.sh){:target=\"_blank\"}","metrics":{"detailViews":0,"githubClicks":0},"dates":{"published":null,"modified":"2026-09-26T20:40:41.000Z"}}