Skip to main content

korely-memory

The Python SDK for Korely Agents: memory for AI agents, with bi-temporal typed facts and contradiction checking built in.

A typed, zero-dependency client over the Korely REST API. Every method maps 1:1 onto an endpoint, so anything you can do with curl you can do here, and the JSON shapes in the API reference are the attribute shapes you get back. All the intelligence (embeddings, entity and typed-fact extraction, contradiction checking, bi-temporal validity) runs server-side, so your install stays small and your process stays light.

Install

pip install korely-memory

Python 3.9 or later, for the SDK, the korely CLI and the korely-mcp stdio server alike: the MCP server needs no extra package since 0.1.16 (pip install 'korely-memory[mcp]' still works, the extra is empty).

Quickstart

from korely_memory import Korely

korely = Korely(api_key="kor_live_...", region="eu")
# or read the key from the environment (KORELY_API_KEY)
korely = Korely(region="eu")

# Remember: the write path extracts facts and resolves contradictions
korely.add("Maria lives in Rome", user_id="maria")
korely.add("Maria moved to Milan", user_id="maria")

# Recall the raw memories, ranked by meaning. Both come back: memories are
# kept as written, it is the facts extracted from them that get superseded.
for hit in korely.search("where does Maria live", user_id="maria", limit=5):
    print(hit.id, hit.score, hit.snippet)

# One-call, prompt-ready context for your LLM. Its "Known facts" are the
# current ones, so the Rome fact, once superseded, is not among them.
# (Facts are extracted a few seconds after each write on the hosted service.)
ctx = korely.get_context("where should I send the package?", user_id="maria",
                         token_budget=800)
messages = [{"role": "system", "content": f"You are helpful.\n\n{ctx.context}"}]

Methods

Every method wraps exactly one REST endpoint.

Method Endpoint
add(content, *, agent_id=, user_id=, run_id=, metadata=, timestamp=) POST /v1/memories
search(query, *, user_id=, agent_id=, run_id=, metadata=, limit=, min_score=) POST /v1/memories/search; min_score (0 to 1) leaves out hits scored below it
get_all(*, user_id=, agent_id=, run_id=, limit=, offset=) GET /v1/memories
get(memory_id) GET /v1/memories/:id
update(memory_id, *, content, expected_updated_at=) PATCH /v1/memories/:id
delete(memory_id) DELETE /v1/memories/:id
delete_all(*, user_id) DELETE /v1/users/:user_id/memories
history(memory_id) GET /v1/memories/:id/history
users(*, agent_id=, limit=, offset=) GET /v1/users
list_agents(*, limit=, offset=) GET /v1/agents
delete_agent(agent_id) DELETE /v1/agents/:agent_id
get_facts(*, subject=, entity=, predicate=, predicate_family=, include_invalidated=, as_of=, known_as_of=, …) GET /v1/facts
add_fact_triple(subject, predicate, object, *, user_id=, valid_from=, tense=, …) POST /v1/facts
correct_fact(fact_id, *, subject=, predicate=, object=) PATCH /v1/facts/:id
forget_fact(fact_id, *, at=) POST /v1/facts/:id/forget
get_profile(*, user_id, agent_id=, as_of=, known_as_of=) GET /v1/profile
get_context(*, query, user_id=, agent_id=, token_budget=, known_as_of=) GET /v1/context
events(*, user_id=, status=, limit=) GET /v1/events
batch(memories) POST /v1/batch
batch_status(job_id) GET /v1/batch/:id
ping() GET /v1/ping
delete_account(*, confirm="<account id>") DELETE /v1/account (Cloud only)
Korely.init_agent(agent_caller=None, *, base_url=, …) POST /v1/agents/init, no key (Cloud only)
audit(*, user_id=, action=, since=, until=, limit=, offset=) GET /v1/audit
iter_audit(*, user_id=, action=, since=, until=, page_size=, offset=) GET /v1/audit, every page

AsyncKorely has the same methods, awaitable (iter_audit is an async for).

ping() checks a key without spending anything (no scope, no rate limit, no quota) and answers its tier, region and scopes, on the Cloud and on the Self-hosted alike.

Korely.init_agent("my-app") signs up for a free hobby key with no key, so it is a class method: the answer carries the key once (repr() leaves it out), then Korely(api_key=result.api_key). It is what korely init --agent calls. Cloud only: a Self-hosted install mints its keys in its own dashboard.

delete_account(confirm="<account id>") deletes the account of the key, for good, with every key, memory and fact of it. It is for an account korely init --agent made, which nobody signs in to; one with a Korely login answers ConflictError (account_has_login) and is closed from the app. confirm is the account's id, typed (tenant_id of GET /admin/whoami), as the dashboard has the email typed: the DELETE is sent only when it is a UUID equal, spaces stripped, to the id GET /admin/whoami gives the same key. Missing, True, "true" or another id: nothing is sent but that GET, and it raises KorelyError with the code confirmation_required, whose message names the id to type. Only the server's answer deleted: true is a deletion; a redirect or a 2xx without it raises, and the account may still be there. A server older than 1.0.23 takes only ?confirm=true: the client does not fall back to it, deletes nothing and raises APIError with the code server_too_old (upgrade the server, or use korely-memory 0.1.29). A key that may not read GET /admin/whoami (403, a key without the admin scope) deletes nothing: with no id typed it raises that confirmation_required, whose message says whoami could not be read; with the id typed, the whoami's refusal, NamespaceForbiddenError (an APIError, status 403, code forbidden). Cloud only: the Self-hosted, which has no such route, stops at that 403 for a key without the admin scope, else answers 404 (405 where it serves its dashboard).

The key goes only to base_url. A GET's redirect is followed without it, to another server or the same one, so a server that wants it after a redirect answers 401; when it went to another server, the AuthenticationError says where: point base_url at that address. A call that is not a GET (POST, PATCH, DELETE) is never redirected: a 3xx raises APIError with its status, its message naming the origin the redirect pointed to.

audit() reads the trail of the key's project, newest first: who acted (actor), what (action: read, write, fact_write, fact_invalidate for a fact closed, forget for a memory forgotten with its text kept, erase for one gone for good, key_create, key_revoke, and tenant_create on the Self-hosted; open strings, not an enum; until Korely 1.0.23 a forget was filed as erase), the result, the end user and the memory or fact touched, api_key_id (the key that made the call, by the id the dashboard lists it with, never the key; Korely 1.0.23 and later), and for a read the ids it returned, never the content. A field a newer server adds is left out, not an error. Both products have it, and the key needs memories:read; it costs no quota. user_id= answers an access or erasure request for one person; since and until take ISO 8601 text, a datetime (UTC when it has no zone) or a date. iter_audit() walks every page for an export:

import csv, sys

out = csv.writer(sys.stdout)
for e in korely.iter_audit(user_id="maria"):
    out.writerow([e.ts, e.actor, e.action, e.result, e.target_id])

It pins until to the newest event when it starts, so events written during the export do not shift its pages.

add(..., timestamp="2026-01-15") backfills the past: facts extracted inherit the timestamp as their valid_from, so as_of point-in-time queries reflect when things were true, not when they were ingested. Each item of batch() takes the same timestamp key, so a migration keeps its real dates:

korely.batch([
    {"content": "Franco signed up on the Pro plan.", "user_id": "franco", "timestamp": "2026-01-15"},
    {"content": "Franco downgraded to Free.", "user_id": "franco", "timestamp": "2026-06-20"},
])

A timestamp that is not an ISO 8601 date or datetime refuses the whole batch with a 422 naming the item (memories[1].timestamp), before anything is queued.

list_agents() / delete_agent(agent_id) manage your agent namespaces: call list_agents() after an agent_cap_exceeded error to reuse an existing agent_id, or delete_agent() to purge a throwaway one. The page's total counts the namespaces of this key's project; used counts the cap slots taken across the account, which is what the 403 compares with cap. delete_agent() raises NotFoundError for a name this project does not use. Its receipt's slot_freed is always None, because no Korely server sends it: to see whether a slot is free, read cap and used from list_agents() (a slot stays taken while another project of the account still uses the name).

delete_all(user_id=) answers with memories_deleted and facts_deleted, the rows physically erased.

correct_fact() returns the new fact, whose invalidated lists every fact the correction superseded (the corrected one, plus any the contradiction check closed). A correction that restates the fact as it already stands supersedes nothing: the same fact comes back, reconfirmed, with invalidated == [].

get_context() returns the block in context, and in two parts: stable, the head that is the same from one call to the next (put it in the system prompt, where the model provider's prompt cache reuses it; stable_hash says when it changed), and volatile, the facts and memories for this question. degraded is True when part of the block could not be retrieved, and degraded_parts says which.

get_facts() returns a list of Fact that also carries .total, the number of facts matching the filters across all pages, so offset knows when to stop. get_all(), get_facts(), users(), list_agents() and events() take a limit up to 200.

Bi-temporal facts

The differentiator: typed (subject, predicate, object) facts with validity over time. Ask what was true on any date.

# Current state
facts = korely.get_facts(entity="Northwind Hosting")
print(facts[0].object)      # 50 euro per month
print(facts[0].invalid_at)  # None: active

# Point-in-time: what was true on June 1?
facts = korely.get_facts(entity="Northwind Hosting", as_of="2026-06-01")
print(facts[0].object)      # 40 euro per month

# And what did the store know on June 1? (Korely Agent 0.1.26) A change told
# after June 1 is not in it, even when it happened before.
facts = korely.get_facts(entity="Northwind Hosting", known_as_of="2026-06-01")

Scoping

Three identifiers, three levels of scope, the same everywhere (SDK, REST, MCP):

  • agent_id: your application or agent (one namespace per product surface)
  • user_id: your end user (free-form string; unlimited on every tier)
  • run_id: one session or run (sub-scope inside a user)
korely.add("Asked to be contacted on Slack", agent_id="support-bot", user_id="customer-4812")
results = korely.search("contact preference", user_id="customer-4812")

Always pass user_id on reads in multi-tenant products. Filters are additive (AND); a search without user_id spans every end user in the namespace.

Every write says whose memory it is: user_id, agent_id, or both (add, add_fact_triple, each batch item). Korely 1.0.19 and later refuse a write with neither and store nothing: an APIError with status 422, code == "identity_required" and the server's message (in a batch it names the item). An older server accepts it. run_id alone is not an identity. The SDK sends the ids each call names and no others.

Error handling

Every error the server answers with is an APIError carrying the stable code and the message of the REST error envelope ({"code", "message"}), so you can branch on err.code; a self-hosted install that answers FastAPI's detail is read the same way, and err.body keeps the response as it came. The common statuses also have their own subclass. Everything subclasses KorelyError, which is also what a client-side problem raises (no key, a connection error, a timeout).

import time
from korely_memory import Korely, AuthenticationError, NotFoundError, QuotaExceededError

korely = Korely(api_key="kor_live_...")
try:
    memory = korely.get("mem_8f2c1a")
except AuthenticationError:
    raise                           # 401: check or rotate the key
except NotFoundError:
    memory = None                   # 404: forgotten or never existed
except QuotaExceededError as err:   # 429
    if err.retry_after is None:
        raise                       # monthly quota used up: nothing to wait for
    time.sleep(err.retry_after)     # rate limit: wait as long as the server said
    memory = korely.get("mem_8f2c1a")
Exception Status Typical code
AuthenticationError 401 invalid_key
NamespaceForbiddenError 403 agent_cap_exceeded, missing scope
NotFoundError 404 not_found
ConflictError 409 account_has_login (Cloud), fact_not_current (correct_fact() of a fact that is history; current_fact_id is the fact to correct instead, None when nothing replaced it), conflict (Self-hosted)
StaleWriteError (a ConflictError) 409 stale_write
QuotaExceededError 429 rate_limit_exceeded (has retry_after), quota_exceeded (monthly, retry_after is None)
TooManyBatchesError (a QuotaExceededError) 429 too_many_batches (batch(), Cloud only: three imports still running; send again when one finishes)
APIError any other, and the base of all of the above invalid_request (422), search_unavailable / model_unavailable (503, safe to retry), writes_paused (503, Cloud only, has retry_after)

Every APIError has retry_after: the seconds of the server's Retry-After header, or None when it sent none. A rate limit sends it, and so does writes_paused, the Cloud's pause of the writes that need a model once its daily model budget is spent (until 00:00 UTC). The SDK does not retry on its own.

CLI

pip install korely-memory also installs korely, one command per API call, reading the key from KORELY_API_KEY or from the file korely init saved. Every command takes --json (the API's own shape; an error is a JSON object on stderr, {"code": "invalid_arguments", ...} for a command line it refuses), --api-key and --base-url; --user-id and --agent-id scope the ones that read or write memories.

A write (add, add-fact, batch) says whose memory it is. Say it once and every write that names neither id sends it:

korely init --user-id maria        # or --agent-id my-agent, or both
korely add "Maria moved to Milan."  # sent with user_id maria

The id is saved next to the profile's key (--profile work for a named one) and is sent only with that key: a key from KORELY_API_KEY, --api-key or another profile takes no saved id. --user-id or --agent-id on a command still win, and the ids given are the whole identity. With no id given and none saved, a write stops before sending with identity_required and the flags to add, the code Korely 1.0.19 gives the same refusal.

Command Call
korely init [--agent] [--processing-region eu|global] [--api-key KEY] [--force] [--user-id U] [--agent-id A] POST /v1/agents/init, or save a key you have; --processing-region eu reads the new account's memories in Europe (Global, the default, otherwise); --force to replace a saved one; --user-id/--agent-id save whose memory your writes are (with a key already saved, only that)
korely auth / korely ping GET /v1/ping
korely add TEXT / korely update ID TEXT POST /v1/memories / PATCH /v1/memories/:id (- or a pipe reads stdin)
korely search QUERY POST /v1/memories/search
korely context QUERY GET /v1/context
korely list [--limit] [--offset] GET /v1/memories
korely get ID / korely history ID GET /v1/memories/:id / .../history
korely events [--status error] GET /v1/events
korely facts [--as-of DATE] GET /v1/facts
korely add-fact SUBJECT PREDICATE OBJECT POST /v1/facts (--valid-from, --tense)
korely correct-fact ID --object O PATCH /v1/facts/:id
korely forget-fact ID [--at DATE] POST /v1/facts/:id/forget
korely profile --user-id U GET /v1/profile
korely users GET /v1/users
korely agents GET /v1/agents
korely delete ID DELETE /v1/memories/:id
korely delete-all --user-id U --yes DELETE /v1/users/:user_id/memories
korely delete-agent --agent-id A --yes DELETE /v1/agents/:agent_id
korely batch FILE / korely batch-status JOB POST /v1/batch / GET /v1/batch/:id
korely audit [--all] GET /v1/audit (--action, --since, --until)
korely delete-account --confirm ID DELETE /v1/account (Cloud only)

A command takes --user-id and --agent-id only when it sends them, and refuses them otherwise, before doing anything: korely delete-all --user-id U --agent-id A is refused, because the erasure of an end user takes every agent of the project (to purge one agent, korely delete-agent --agent-id A); korely delete-agent --user-id U is refused too. In 0.1.29 and earlier every command took both, and delete-all erased the end user in every agent with the agent id unread.

korely batch reads a JSON array, an object with memories, or JSON Lines (- for stdin); an item is the body of one add, or a string taken as its content. --user-id and --agent-id scope the items that name none; an item that still names neither takes the id korely init saved, and with none saved the batch stops before sending, naming the item.

korely audit --all walks every page, for an export; with --json it is one JSON document in the API's shape, streamed, so a long trail never sits in memory. --offset resumes an export that stopped (pass the same --until).

korely delete-account --confirm <account id> closes the account of an init --agent key and removes that key from ~/.korely/config.json, so the next korely init can save a new one. Without --confirm, or with another id, nothing is deleted and the error names the id to type (korely delete-account alone shows it); --yes is no longer taken. The key leaves the file only when the server answers deleted: true. Against a server older than Korely 1.0.23 it stops with server_too_old, nothing deleted and the key kept.

LangGraph

pip install 'korely-memory[langgraph]'   # Python 3.10+, as LangGraph itself

korely_memory.integrations.langgraph gives a graph three ways to use Korely. Take the ones you need: import korely_memory loads none of them, so the core package keeps zero dependencies.

Context before the model answers

korely_context(client, user_id, query) makes one GET /v1/context call and returns the text for a SystemMessage: the user's current facts and the memories relevant to the question, within token_budget, under a Current date: YYYY-MM-DD line. In our measurements the model answers better when its prompt carries the date; include_date=False leaves it out and today= sets it. Write each turn back with add(), and the next turn finds it, on any thread.

from dataclasses import dataclass

from langchain.chat_models import init_chat_model
from langchain_core.messages import SystemMessage
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.graph import START, MessagesState, StateGraph
from langgraph.runtime import Runtime

from korely_memory import Korely
from korely_memory.integrations.langgraph import korely_context

korely = Korely()                          # reads KORELY_API_KEY
model = init_chat_model("provider:model")  # any chat model LangChain supports


@dataclass
class Context:
    user_id: str


def call_model(state: MessagesState, runtime: Runtime[Context]):
    user_id = runtime.context.user_id
    question = state["messages"][-1].text
    memory = korely_context(korely, user_id, question, token_budget=800)
    reply = model.invoke([SystemMessage(memory), *state["messages"]])
    korely.add([{"role": "user", "content": question},
                {"role": "assistant", "content": reply.text}], user_id=user_id)
    return {"messages": [reply]}


builder = StateGraph(MessagesState, context_schema=Context)
builder.add_node(call_model)
builder.add_edge(START, "call_model")
graph = builder.compile(checkpointer=InMemorySaver())

graph.invoke(
    {"messages": [{"role": "user", "content": "Where should I send the package?"}]},
    {"configurable": {"thread_id": "1"}},
    context=Context(user_id="maria"),
)

The checkpointer keeps one thread's messages; Korely keeps what the user said across all of them. akorely_context() is the same call for an async node.

Tools

from korely_memory.integrations.langgraph import create_korely_tools

tools = create_korely_tools(korely, user_id="maria")   # [search_memory, save_memory]
model_with_tools = model.bind_tools(tools)

search_memory(query) answers with the same block as korely_context(); save_memory(content) stores one memory. The app binds the user (and agent_id=) when it creates the tools: neither is in the tools' schema, so the model can neither see nor change them. Create the tools per user, for instance in the node that calls the model. A Korely error reaches the model as the tool's answer instead of ending the run.

Store

from korely_memory.integrations.langgraph import KorelyStore

graph = builder.compile(checkpointer=InMemorySaver(), store=KorelyStore(korely))
# in a node: runtime.store.put(("memories", user_id), key, {"content": "..."})

KorelyStore is a LangGraph BaseStore, for code that expects one: runtime.store, LangMem's memory tools. Each item is a Korely memory of the user, so Korely extracts facts from it and korely_context() and the tools find it. The memory's text is the value's content, text, memory or data string, else one key: value line per field (index=[...] on a put, or index_fields=, picks other fields). The value itself travels in the memory's metadata and comes back exactly. Each put is a write like any other: it is digested into facts and counts in your plan's writes, so the store suits what a user said or decided, not caches or scratch state.

Operation On Korely
put, get, delete Yes. The API has no lookup by your key, so each pages through the namespace's items, one request per 200. A put on an existing key stores the new memory, then forgets the old one.
search(ns, query=...) Yes, one POST /v1/memories/search, with scores. offset + limit at most 50; filter takes equality on top-level fields.
search(ns) without a query Yes, newest first, with every filter operator.
list_namespaces, a prefix such as ("memories",), ttl, index=False No: NotImplementedError, before any request.

The namespace ("memories", user_id) is that Korely end user; KorelyStore(korely, agent_id="support-bot") adds the agent, and namespace_to_scope= maps other shapes (a function returning the user id or (user_id, agent_id)). A search covers exactly the namespace it names, never the ones below it. Each namespace is also a Korely run, run_id="langgraph:memories.maria": that is how the store reads its own items and nothing else of the user's, while the rest of Korely reads them as the user's memories. A value must fit in a memory's metadata, 8 KB of JSON on the current server. delete forgets as delete() does; erasure is delete_all(user_id=). Two writers on one key at the same instant can leave two memories: reads take the newest, and the next put or delete removes the other.

One memory for your coding assistants

pip install -U korely-memory
cd your-repo
korely init --tool claude-code      # or: --tool codex, --tool cursor

Each command connects one assistant to the same memory: repo:<name>, the repository's name, so what Claude Code learnt on Monday, Codex reads on Tuesday. It installs hooks, the assistant's own lifecycle commands, that run korely hook:

When What happens
The session starts The assistant is handed what Korely holds for the repository
The first prompt It is handed what matches that prompt
Every 5 answers, before a compaction, at the end The prompts and the final answers are sent as one memory, from a process of their own, so the assistant never waits

Before anything leaves the machine, what looks like a generated key, a private key or a password in a URL is replaced by [redacted]. A generated key is told by its shape alone, with no list of vendors:

  • Masked: a run of 24 characters or more that mixes upper case, lower case and digits, spread like a random string; and a run of 24 hex digits or more of one case, letters and digits mixed, alone, joined to the rest of a run by =, _, - or +, or after 0x. Hex identifiers have that shape too and are masked with the keys: full git commit hashes, sha256 and md5 digests, Docker image ids, MongoDB ObjectIds, trace ids, UUIDs written without dashes (a Notion page link becomes https://app.notion.com/[redacted]) and Ethereum addresses.
  • Not masked: UUIDs with dashes, short hashes (under 24 hex digits, as the 7 to 12 git prints), numbers, words and identifiers.
  • Not caught: hex keys of 20 to 23 characters; a prefix glued to hex digits with no =, _, - or + between them (letters then 32 hex digits: the run is neither hex nor mixed case); keys of letters alone; base32 secrets (an authenticator's) and other keys of upper case and digits only; keys shaped like a UUID with dashes; a key split across lines into pieces under 24 characters; some base64 keys holding /, and keys written URL-encoded. Do not count on it to keep a secret pasted into a session.

A hook never breaks the assistant: a failure is a line in ~/.korely/hook.log, without the text of the session. Turns that could not be sent stay in the buffer and go with the next send; after the fifth failed send they are dropped, with a line in hook.log (gave up on ...).

Tool Files (this repository) With --global (every repository) Notes
Claude Code .claude/settings.local.json, MCP with claude mcp add --scope local ~/.claude/settings.json, --scope user Hooks run in a folder you trusted
Codex .codex/hooks.json, .codex/config.toml ~/.codex/ Trust the five hooks once with /hooks
Cursor .cursor/hooks.json, .cursor/mcp.json ~/.cursor/ Cursor also runs Claude Code's hooks; korely's step aside there, so a turn is stored once. Cursor does not wait for sessionStart

A personal file in a repository is added to .git/info/exclude; a file the repository already commits is left alone (use --global). It also adds the korely-mcp server with the same scope, for searches and writes the assistant decides on (--no-mcp to skip it). --user-id <id> puts everything in one memory instead; --remove takes it all out again.

Five answers to a memory is about eight writes for a day of forty exchanges.

Two projects, one shared and one private

A key reads its whole project, so a private memory is a project of its own. Save its key as a named profile, next to the default one, in the same file (~/.korely/config.json, chmod 600; no key goes into a tool's config):

korely init --api-key kor_live_...                      # the shared project
korely init --api-key kor_live_... --profile private    # the private one
korely init --tool claude-code --also-read private

The session start then reads the repository's memory and, under a heading of its own, the private project; sessions are still saved to the shared one only. A second MCP server, korely-private, reads and writes the private project on purpose. --also-read-user <id> does the same for a memory of the same project that spans repositories (your own preferences and decisions, e.g. founder): the start reads it next to repo:<name>, and the session is saved to the repository. Every command takes --profile (or KORELY_PROFILE), and so do Korely(profile="private") and korely-mcp --profile private.

Your full name, once, for that memory of yours:

korely init --name "Maria Rossi" --user-id maria

The store never merges two names of a person by itself (two people can share one), so "I moved to Turin" written under maria and "Maria Rossi moved to Turin" in another note stay two people until the name is declared. After it, what the memories say about "Maria Rossi" is about maria, the facts already written included. A repository's memory (repo:<name>) is not a person: --name needs --user-id. In code: k.declare_name("Maria Rossi", user_id="maria").

The hooks save each session with kind="session". A read that wants what was said and decided, not the work logs, passes exclude_sessions=True (get_context, search, get_all, get_facts, get_profile): the sessions and the facts only they state stay out.

MCP server

pip install 'korely-memory[mcp]'   # Python 3.9+ since 0.1.16

korely-mcp is a stdio MCP server with four tools (korely_get_context, korely_add, korely_search, korely_get_facts), the same four the hosted server at https://api.korely.ai/agent/mcp offers, with the same arguments (korely_add takes timestamp) and the same fact lines: a fact whose end date is still to come reads [until 2027-01-01], not [superseded ...], and dates are UTC days. It reads the key from KORELY_API_KEY or from the file korely init saved. --user-id <id> is the user_id of a call that names none; --repo-scope makes it repo:<name> of the folder the assistant starts the server in, the memory korely hook writes; --agent-id <id> is the agent_id of a write that names none.

korely_add sends the ids the model passes, else those flags, else the id korely init saved for the profile, when the server's key is the one saved with it. With none of them it answers an error and sends nothing, and its description tells the model to pass user_id or agent_id (Korely 1.0.19 and later refuse a write with neither). korely init --tool starts it with --repo-scope or --user-id; outside a git repository --repo-scope gives no id.

MIT licensed.

Metadata

Release files for korely-memory 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korely-memory 0.2.0
File Size Uploaded Provenance Actions
korely_memory-0.2.0.tar.gz 181.4 kB Without provenance Details for korely_memory-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for korely-memory 0.2.0
File Interpreter ABI Platform Actions
korely_memory-0.2.0-py3-none-any.whl Python 3 none any Details for korely_memory-0.2.0-py3-none-any.whl

Total release size: 288.2 kB

Release files / korely_memory-0.2.0.tar.gz

Download URL korely_memory-0.2.0.tar.gz
Size 181.4 kB
Tags Source
SHA-256 checksum
How to use checksums
965863f6bd8381cdd31e49834a52fa317597af0ef13bb29e7d8d5e66573cc05c
BLAKE2b-256 checksum
How to use checksums
b0aa7394511a43b6d554e7bcc7752869dfe55b0c3becafbb607e49d02a93d25c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / korely_memory-0.2.0-py3-none-any.whl

Download URL korely_memory-0.2.0-py3-none-any.whl
Size 106.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0512d3ac94381ac3bc446d0627e919ac443538688087c0a2a4976660736dd9e4
BLAKE2b-256 checksum
How to use checksums
ece0e8356e743385499422277d019eaf5aac440752c86fb03954b8e4828b22f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for korely-memory 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page