Exposes Large Language Models as a 9P filesystem, enabling interaction through standard file operations.
llm9p bridges the gap between powerful Large Language Models and traditional Unix-like operating systems by presenting LLM access through the elegant and lightweight 9P filesystem protocol. This innovative approach allows users, scripts, and AI agents to interact with LLMs using familiar file operations like `cat` and `echo`, eliminating the need for complex SDKs or HTTP APIs. It supports various backends, including Anthropic API and Claude Code CLI, with planned support for local LLMs, making it a versatile tool for integrating conversational AI into any environment that understands files.
Key Features
01Enables conversation history management and reset functionality.
02Manages LLM parameters like model, temperature, and system prompts through dedicated files.
03Access LLMs via the 9P filesystem protocol using standard file operations.
04Provides a streaming interface for real-time retrieval of LLM responses.
051 GitHub stars
06Supports multiple LLM backends: Anthropic API, Claude Code CLI, and planned local Ollama integration.
Use Cases
01Exploring and utilizing Large Language Models within Plan 9 or Inferno OS environments.
02Integrating LLM capabilities into shell scripts and Unix pipelines for automated text processing.
03Allowing AI agents to interact with LLMs through a standardized filesystem interface.