Documentation Index
Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The moorcheh-client package provides a Python SDK (MoorchehApiClient) for calling the Moorcheh on-prem API, plus the moorcheh CLI for starting the runtime and running the same operations from the shell.
No API keys are required — the client talks directly to your local Moorcheh instance.
Package
| PyPI | moorcheh-client |
| Import | from moorcheh import MoorchehApiClient, MoorchehApiError |
| CLI | moorcheh (installed with the same package) |
Start the server
The Python client requires a running Moorcheh instance. Start it with the CLI:http://localhost:8080
Use a different port if you started with moorcheh up --server-port 8081.
Client
| Argument | Default | Description |
|---|---|---|
base_url | — | Moorcheh API URL (trailing slash is stripped) |
timeout | 30 | Request timeout in seconds |
dict. HTTP failures raise MoorchehApiError.
Methods
| Group | Method | Description |
|---|---|---|
| Health | health() | Server status and global item quota |
| Namespaces | create_namespace() | Create a text or vector namespace |
list_namespaces() | List namespaces with item counts | |
delete_namespace() | Delete a namespace (async) | |
delete_namespace_job_status() | Poll namespace delete job | |
| Data | upload_namespace_documents() | Upload text documents (async) |
upload_namespace_vectors() | Upload precomputed vectors (async) | |
upload_job_status() | Poll upload job | |
| Items | get_namespace_items() | Get items by id |
delete_namespace_items() | Delete items by id | |
| Search | search() | Semantic search (text or vector query) |
Errors
Non-2xx HTTP responses raiseMoorchehApiError with:
status_code— HTTP status (for example400,404,409)body— parsed JSON error body when availableis_item_limit_exceeded—Truefor 409 quota errors on uploads
Search validation errors return HTTP 400 with
"status": "error" in the body (not "failure").Data location
moorcheh up persists data under ~/.moorcheh/data. moorcheh down stops containers but keeps your data.
Next steps
- Getting started — end-to-end Python workflow
- Quickstart — CLI-first walkthrough
- CLI overview — all
moorchehcommands