Open-source AI agent with memory

The AI agent that remembers, checks its own work and gets better with use. Version 1.2.0, Apache-2.0, on PostgreSQL 17.

Get started

Every Nous decision on the record

Before it acts, Nous recalls similar past decisions and checks its guardrails. It records the choice with its reasons and confidence, then reviews it against what happened.

See how the Brain works

Six things Nous does. Each one is in the code you clone.

Remember

1. Keeps memory between sessions

Episodes, facts, procedures and censors stay in PostgreSQL and come back in later sessions.

Decide

2. Records decisions with confidence

Each significant choice is saved with its reasons and confidence, then reviewed against the outcome.

Learn

3. Learns procedures from what worked

Good decisions, episode lessons and error recoveries become procedures once they pass a lesson gate.

Verify

4. Checks its claims against the ledger

Side-effecting tool calls go into a durable ledger. After each turn, what Nous says it did is checked against it.

Act on its own

5. Works without being asked

Heartbeat checks, schedules, background subtasks and multi-step plans run without a message from you.

Guardrails

6. Blocks risky actions in code

Censors and guardrails stop a matching action before it runs, so a rule holds when the prompt forgets it.

Nous beside a typical agent

Most agents are good for one conversation and blank the next. Nous is built to run for months.

AreaMost agents and harnessesNous
LifetimeOne session, then the context resetsAlways on, with months of history in one database
MemoryA chat log, a notes file or a vector storeTyped memories linked in a knowledge graph, consolidated every night
DecisionsMade and forgottenRecorded with confidence and reasons, reviewed against outcomes
Saying "done"Taken on trustChecked against a ledger of the tool calls that really ran
RulesPrompt instructions it may ignoreCensors and guardrails that block the action in code
InitiativeWaits for your messageHeartbeat checks, schedules, background tasks and plans
ImprovementOnly when you edit its promptLearns procedures from what worked, each through a gate
GradingGrades itselfBackground work scored by a separate, deterministic scorer

The Nous loop in every turn

Nous frames the situation, rebuilds the context it needs, checks guardrails and past decisions, acts, compares what it claimed with what ran, then learns from the result.

A sleep cycle feeds what was learned back into recall.

See the architecture

The agent runs on your machine

Clone the repository, put your Anthropic API key in .env and start the containers. Migrations run on startup.

Read the quickstart
  • Python 3.12+
  • PostgreSQL 17
  • Docker Compose
  • Anthropic API

4

database schemas in one PostgreSQL

5

tools on its MCP server

6

cognitive frames in the seed data

Questions about Nous

Short answers, taken from the repository's own docs.

Read the full quickstart

Is Nous open source?

Yes, under the Apache 2.0 licence, on GitHub.

What does Nous run on?

Python 3.12+ and PostgreSQL 17 with pgvector, in Docker Compose.

Which models does Nous use?

Claude, through the Anthropic API. An optional OpenAI key turns on embeddings.

Does Nous keep memory between sessions?

Yes. Its memory stays in PostgreSQL and comes back in later conversations.

How do I talk to Nous?

Over the REST API, through its MCP server, or with the optional Telegram bot.

What happens when Nous is stopped?

Its memory stays in the database volume. docker compose down -v deletes it.