Skip to main content

Hexify SDK

Config-driven Python SDK for building AI agents and RAG pipelines.

Import name: hexify · Pip name: hexify-ai · Python: 3.10+

v1 is a library, not a hosted API: config in, working agent out, in one Python call.

from hexify import Agent

agent = Agent(
    name="assistant",
    llm="claude-sonnet-5",
    system_prompt="You are a helpful assistant.",
)
print(agent.run("Hello!"))

Install

pip install hexify-ai

From this repo: pip install -e ".[dev]".

Quickstart (under 5 minutes)

  1. Python 3.10+ and an Anthropic API key.
  2. Set ANTHROPIC_API_KEY (export ANTHROPIC_API_KEY=sk-ant-... or, in PowerShell, $env:ANTHROPIC_API_KEY="sk-ant-...").
  3. pip install hexify-ai
  4. Run the snippet above, or:
python examples/basic_agent.py

Subsequent agent.run(...) calls on the same instance keep in-process conversation memory.

RAG + tools

from hexify import Agent, RAG

rag = RAG(
    source="./docs",
    embedder="openai",
    vectorstore="pgvector",
    pg_connection_string="postgresql://user:pass@localhost/hexify",
)
agent = Agent(
    name="support-bot",
    llm="claude-sonnet-5",
    rag=rag,
    tools=["web_search"],
    system_prompt="You are a support agent for Acme App.",
)
print(agent.run("How do I reset my password?"))

v1 models: claude-sonnet-5 (default), claude-haiku-4-5.
v1 vectorstore: pgvector only.
v1 built-in tools: web_search and send_email (deterministic stubs — no live web or SMTP).

RAG also needs OPENAI_API_KEY (embeddings) and a Postgres database with the vector extension.

CLI

hexify init
hexify run hexify.json --message "Hello"
hexify run hexify.json          # interactive prompt (quit / Ctrl-D to exit)

hexify.json is an AgentConfig file. Folder rag_source values are resolved relative to that file. Set HEXIFY_PG_CONNECTION_STRING when RAG is enabled.

Environment

Variable Used by
ANTHROPIC_API_KEY Claude (Agent.run)
OPENAI_API_KEY OpenAI embeddings (RAG)
HEXIFY_PG_CONNECTION_STRING pgvector (RAG, hexify run)

Custom tools

from hexify.tools import tool

@tool(
    name="order_status",
    description="Look up an order by id.",
    input_schema={
        "type": "object",
        "properties": {"order_id": {"type": "string"}},
        "required": ["order_id"],
    },
)
def order_status(args: dict) -> str:
    return f"Order {args['order_id']} shipped."

Then pass tools=["order_status"] (and any built-ins) into Agent.

Logging

Each Agent.run emits one JSON line on the hexify.run logger: tokens, latency (ms), tool names, RAG hit count, and ok. hexify run prints these on stderr.

Examples

Docs

Develop

For the full contributor guide (branching, testing, releasing), see DEVELOPING.md. The short version:

git clone https://github.com/asad926/hexify-sdk
cd hexify-sdk
python -m venv .venv
. .venv/Scripts/Activate.ps1   # Windows PowerShell
pip install -e ".[dev]"
pre-commit install             # optional but recommended
ruff check .
pytest --cov=hexify

cp .env.example .env to start a local secrets file (git-ignored).

License

MIT — see LICENSE.

Metadata

Release files for hexify-ai 0.1.1

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

Source distribution (sdist)

Source distribution for hexify-ai 0.1.1
File Size Uploaded Provenance Actions
hexify_ai-0.1.1.tar.gz 64.1 kB With provenance Details for hexify_ai-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hexify-ai 0.1.1
File Interpreter ABI Platform Actions
hexify_ai-0.1.1-py3-none-any.whl Python 3 none any Details for hexify_ai-0.1.1-py3-none-any.whl

Total release size: 99.9 kB

Release files / hexify_ai-0.1.1.tar.gz

Download URL hexify_ai-0.1.1.tar.gz
Size 64.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb82292785cc20159ef6bb466fcd1ac1c8c5cf1010ffa9a77a6b31c72a29d4c
BLAKE2b-256 checksum
How to use checksums
b9a7e25308a2c02b2db0fe48328dc3441dab16dfae67253f0743b39ab6b3b8f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / hexify_ai-0.1.1-py3-none-any.whl

Download URL hexify_ai-0.1.1-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1798fcc2c4c9d14121e768452191528ae657771e74ae265bac6153ac7766514
BLAKE2b-256 checksum
How to use checksums
c3aaabe99293c291de23c1f5bc8dbdbdade8e3ef06a34a67e0c0e3be48ec7cb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Security for hexify-ai 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hexify_ai-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

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.1.1 This release

2 release files Full 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