Welcome to the official documentation for Nexithium Agent Platform, your go‑to framework for building, deploying, and extending AI agents.
Nexithium Agent Platform is a modular Python framework that lets you:
Use it for crypto analysis, customer support, research assistants, and more.
git clone https://github.com/nexithium/nexithium-agent-platform.git
cd nexithium-agent-platform
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Copy the example and fill in your environment variables:
cp config.env.example .env
Edit .env
:
OPENAI_API_KEY=sk-...
TELEGRAM_BOT_TOKEN=12345:abcde
NEXITHIUM_API_KEY=your-secret-key
SERPER_API_KEY=your-serper-api-key
# REDIS_URL=redis://:pass@host:6379/0
core/agent.py
): runs the LLM, manages messages, and calls toolscore/memory.py
): short‑term buffer and persistent JSON/Redis storagecore/tools.py
): registry for API wrappers and custom functionsLocated in tools/
, each tool is a simple function registered via @register_tool
:
coingecko.get_price
— fetches USD pricetoken_trend
— analyzes 2‑day trendtoken_description
— retrieves project descriptiontoken_market_data
— market cap & volumegoogle_search
— web search via Serper.devtavily_news
— news summary fallbackinterfaces/cli.py
) — interactive terminal interfaceinterfaces/telegram_bot.py
) — bot with inline menu & commandsinterfaces/fastapi_server.py
) — /chat
and /tools
endpointspython interfaces/cli.py --memory short --model gpt-4
Commands:
help
— show commandstools
— list available toolsuse <tool> [args]
— invoke a specific toolexit
/quit
— stopStart the bot:
python interfaces/telegram_bot.py
Commands:
/start
— show menu/help
— usage guide/tools
— list toolsprice <symbol>
, trend <symbol>
, analyze <symbol>
, forecast <symbol>
Run server:
uvicorn interfaces.fastapi_server:app --reload --port 8000
Endpoints:
GET /
— health checkGET /tools
— list tools (requires X-API-Key
)POST /chat
— agent interaction (requires X-API-Key
)Use Swagger UI at /docs
.
Create an agent in agents/
:
from core.agent import Agent
from core.tools import load_all_tools
from core.memory import ShortTermMemory
my_agent = Agent(
name="MyCustomAgent",
system_prompt="You are...",
tools=list(load_all_tools().values()),
memory=ShortTermMemory().get()
)
In tools/
, create a new file with a function:
# tools/my_tool.py
def my_tool(arg1: str, arg2: int) -> str:
return f"Received {arg1} and {arg2}"
Then register in core/tools.py
:
from tools.my_tool import my_tool
register_tool("my_tool")(my_tool)
memory_logs/
MemoryManager.get_memory(user_id)
See CONTRIBUTING.md for guidelines on coding standards, testing, and pull requests.
This project is licensed under the MIT License. See LICENSE for details.
Read the full project whitepaper here.
Documentation generated by Nexithium Agent Platform.