A CLI coding assistant powered by OpenRouter's LLM API.
pip install python-dotenv openrouterCreate a .env file with your API key:
OPENROUTER_API_KEY=your_api_key_here
python main.pyThe assistant will prompt for input. Type your request and press Enter. The LLM can use three tools:
read_file- Read a file's contentslist_files- List files in a directoryedit_file- Edit a file (replace text or create new files)
When the LLM needs a tool, it responds with:
tool: TOOL_NAME({"arg": "value"})
Tool results are fed back to the LLM for context.