Appearance
Quickstart
Quickstart
This page gets you to a working Aionis integration in minutes. Run one write, one recall, and leave with the identifiers you need for replay and debugging.
Health checkWrite memoryRecall context
/health
memory.write
memory.recall_text
commit.persist
What you will do
- Run Aionis locally or point to a hosted environment.
- Write one recallable memory event.
- Recall that memory by text.
- Capture the identifiers you will need later for replay and debugging.
- Leave this page with one verified end-to-end success path.
Before you start
- Docker and Docker Compose for local setup.
- Node.js
>=18if you plan to run repository scripts. curlandjqfor the validation steps below.
Choose your path
- Use the local quickstart if you want the fastest hands-on validation from this repository.
- Use the hosted quickstart if you already have a running Aionis environment and credentials.
- If you are evaluating the product instead of integrating today, read Overview first and come back here.
End-to-end flow
flowchart LR A["Developer"] --> B["Write memory"] B --> C["Recall context"] C --> D["Apply policy"] D --> E["Execute action"] E --> F["Persist decision"]
Local quickstart
Clone and configure the repository:
bash
git clone https://github.com/Cognary/Aionis.git
cd Aionis
cp .env.example .envUse these local .env defaults for a first smoke path:
bash
PORT=3001
MEMORY_AUTH_MODE=off
EMBEDDING_PROVIDER=fakeStart the stack and confirm health:
bash
make stack-up
curl -fsS http://localhost:3001/health | jqWrite one recallable event and verify recall:
bash
curl -sS http://localhost:3001/v1/memory/write \
-H 'content-type: application/json' \
-d '{
"tenant_id":"default",
"scope":"default",
"input_text":"Customer prefers email follow-up",
"memory_lane":"shared",
"nodes":[{"type":"event","memory_lane":"shared","text_summary":"Customer prefers email follow-up"}]
}' | jq
curl -sS http://localhost:3001/v1/memory/recall_text \
-H 'content-type: application/json' \
-d '{"tenant_id":"default","scope":"default","query_text":"preferred follow-up channel","limit":5}' | jqStop services when finished:
bash
make stack-downHosted quickstart
If you already have a hosted Aionis environment, use the same validation path:
bash
export BASE_URL="https://api.your-domain.com"
export API_KEY="your_api_key"
curl -fsS "$BASE_URL/health" | jq
curl -sS "$BASE_URL/v1/memory/write" \
-H 'content-type: application/json' \
-H "X-Api-Key: $API_KEY" \
-d '{
"tenant_id":"default",
"scope":"default",
"input_text":"hosted onboarding write",
"memory_lane":"shared",
"nodes":[{"type":"event","memory_lane":"shared","text_summary":"hosted onboarding write"}]
}' | jqWhat success looks like
/healthreturns healthy status.writereturnsrequest_idand commit fields.recall_textreturns candidate or context data.- You can identify which IDs to keep for later replay and debugging.
What to persist from your first run
request_idtenant_idscopedata.commit_iddata.commit_uri
What to read next
- Core Concepts
- Memory and Policy Loop
- API Guide
- SDK Guide if you do not want to stay at raw HTTP level