An AI agent framework for learning and building practical agent workflows.
- Install
pip install -e .- Create a .env file with the following variables
FOX_AGENT_CHAT_API_KEY=your_api_key
FOX_AGENT_CHAT_BASE_URL=your_base_url
FOX_AGENT_CHAT_MODEL=your_model- Run interactive chat
fox-agent- Run a single prompt
fox-agent -p "What is an AI agent?"- Run with stdin input
cat log.txt | fox-agent -p "Analyze this log"The default FOX_AGENT_EMBEDDING_PROVIDER=simple is a lightweight baseline. It hashes tokens into vectors, so it is useful for learning the RAG flow but is not true semantic retrieval.
For local semantic embeddings, run an OpenAI-compatible embedding endpoint with Ollama:
ollama pull nomic-embed-textThen add these variables to .env:
FOX_AGENT_EMBEDDING_PROVIDER=openai
FOX_AGENT_EMBEDDING_BASE_URL=http://localhost:11434/v1
FOX_AGENT_EMBEDDING_API_KEY=ollama
FOX_AGENT_EMBEDDING_MODEL=nomic-embed-textFOX_AGENT_EMBEDDING_API_KEY can be any non-empty value for local Ollama. If Ollama is not already running, start it before running fox-agent.
After switching embedding models, rebuild the knowledge index. Embeddings from different providers or models have different vector spaces and cannot be mixed in the same index.