A complete guide to installing, configuring, and mastering NeuAI - your zero-dependency AI assistant with persistent memory.
Before you begin, make sure you have the following:
NeuAI uses only the Python standard library - no pip packages needed!
You need an Azure OpenAI resource with a deployed model. You'll need:
https://your-resource.openai.azure.com/gpt-4)Apply for access at azure.microsoft.com/products/ai-services/openai-service
NeuAI installs to ~/.neuai/ in your home directory. Follow these steps:
Clone the repository or download the NeuAI files:
Create a convenient command to run NeuAI from anywhere:
All NeuAI files live in ~/.neuai/. Your credentials are stored in ~/.neuai/config.json with restricted permissions (chmod 600).
The first time you run NeuAI, it will guide you through configuration:
You'll see the setup wizard:
╔══════════════════════════════════════════════════════════════╗ ║ Welcome to NeuAI ║ ║ Your Intelligent AI Assistant ║ ╚══════════════════════════════════════════════════════════════╝ ⚙️ First-time setup required Please provide your Azure OpenAI credentials: Azure OpenAI Endpoint: https://your-resource.openai.azure.com/ API Key: •••••••••••••••• Deployment Name [gpt-4]: gpt-4 API Version [2024-02-15-preview]: 2025-01-01-preview 🔗 Testing connection... ✅ Connection successful! Configuration saved to ~/.neuai/config.json
| Flag | Description |
|---|---|
--configure |
Re-run the setup wizard |
--test |
Test your Azure OpenAI connection |
--reset |
Reset all configuration |
--global |
Force use of global ~/.neuai (ignore local) |
Your API key is stored locally in ~/.neuai/config.json with file permissions set to 600 (owner read/write only). Never commit this file to git!
Start NeuAI in interactive mode for a chat-like experience:
| Command | What it does |
|---|---|
/help |
Show all available commands |
/new |
Start a new conversation (keeps memories) |
/memory |
View all stored memories |
/remember <text> |
Store a new memory |
/forget |
Clear all memories |
/status |
Show connection and config info |
/export |
Export conversation to file |
/exit |
Exit NeuAI |
Send a message and get a response without entering interactive mode:
NeuAI's killer feature is persistent memory. Memories survive across sessions and help the AI remember context about you and your work.
| Type | Use for | Example |
|---|---|---|
fact |
General facts | "User's name is Alex" |
preference |
Likes/dislikes | "User prefers TypeScript over JavaScript" |
insight |
Observations | "User works better in the morning" |
task |
To-dos/reminders | "User has a meeting on Tuesday" |
| Level | Meaning |
|---|---|
1 | Low - nice to know |
2 | Minor importance |
3 | Normal (default) |
4 | High importance |
5 | Critical - never forget |
NeuAI lets you organize memories by subject (project, topic, client, etc.). Memories can be shared across multiple subjects without duplication.
3 memories
"API rate limit"
5 memories
Shared memories exist once but are linked to multiple subjects
When you query multiple subjects, shared memories appear only once. The shared_count field tells you how many subjects share that memory.
The Agent Bridge (neuai-agent-bridge.py) provides a JSON API for automation and integration with AI agents like Claude Code.
| Command | Description |
|---|---|
chat <message> | Send a message, get response |
memories | List all memories |
recall <keywords> | Search memories |
remember <content> | Store a memory |
link <id> <subject> | Link memory to subject |
unlink <id> <subject> | Unlink memory from subject |
subjects | List all subjects |
status | Connection/config info |
new | Start new conversation |
clear | Clear all memories |
history [n] | Get last n messages |
test | Test connection |
If you use Claude Code, there's a pre-configured agent at .claude/agents/neuai-assistant.md. It can:
python3 ~/.neuai/neuai-cli.py
Start interactive mode
neuai-agent-bridge.py test
Test connection
neuai-agent-bridge.py chat "Hi"
Send a message
neuai-agent-bridge.py memories
List all memories
remember "fact" --importance 5
Store important memory
remember "fact" --subjects a,b
Store to multiple subjects
memories --subjects a,b,c
Query across subjects
remember "fact" --smart
Auto-deduplicate
You now know everything you need to use NeuAI effectively. Start storing memories and watch how the AI learns about you over time!