Official Python client and local web chat UI for Anchor AI (Fathom-1)
Project description
anchorai-sdk
Official Python client and local web chat UI for Anchor AI (Fathom-1) —
Anchor Cloud's self-hosted assistant. Uses the same ac_live_... API key as
the anchorcloud library, since both
authenticate against the same account on anchorcloud.org.
Install
pip install anchorai-sdk
Chat UI (recommended)
Launches a polished local web chat interface in your browser — nothing runs
except on your own machine, and the only outbound calls are to
anchorcloud.org using your API key.
anchorai --api-key ac_live_...
# or: set ANCHORCLOUD_API_KEY in your environment, then just: anchorai
Opens http://127.0.0.1:8420 automatically. Options:
anchorai --api-key ac_live_... --port 9000 --no-browser
Library usage
from anchorai import AnchorAI
client = AnchorAI(api_key="ac_live_...")
reply = client.ask("Organize my vault into folders by file type")
print(reply)
for m in client.history():
print(m["role"], ":", m["message"])
client.send(message) returns the full response dict from the server
({"reply": ..., "type": ...}, occasionally including a files list for
download requests); client.ask(message) is a shortcut that just returns the
reply text.
Getting an API key
Same key as the anchorcloud library: dashboard.anchorcloud.org → API
Keys → Generate New Key. One key works for both file storage and chat,
since they share the same account and auth.
Error handling
from anchorai import AnchorAI, AuthError, ApiError
try:
client = AnchorAI(api_key="ac_live_...")
client.ask("hello")
except AuthError:
print("Key is missing, malformed, or was revoked.")
except ApiError as e:
print(f"Server error ({e.status_code}): {e}")
Requirements
- Python 3.9+
requests
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anchorai_sdk-0.1.1.tar.gz.
File metadata
- Download URL: anchorai_sdk-0.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e62124bc552499652343a3b7009b14aca6f73025152941ba1ee265de05abc66c
|
|
| MD5 |
e62605f5adb3303c8e01120341ba5041
|
|
| BLAKE2b-256 |
78f54bfb6d8c45fc9706906591db350533b7a3fe7825194a826bd3139bc12678
|
File details
Details for the file anchorai_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: anchorai_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
906ad068852a80a34b989a9677ff4beb97b5d496e5363f466cf17f30211649c5
|
|
| MD5 |
a66f6180404e29cc2fd09b8dc1f6dd4a
|
|
| BLAKE2b-256 |
360f45d7939592002d3bbdd7561e6ccdb9a26ced6620b4c354620a7842524dba
|