Official External Packages
The Xu 0.16.0 SDK bundles the 1.0.2 drivers and their native source resources. The standalone 1.17.0 source adds the AI and GPU packages described below. Check the source version on each API page when selecting a dependency.
1. Select the SDK bundle or a fixed source commit
Place your project beside the extracted SDK and declare its bundled packages using a local source locator. Adjust the relative path if you installed the SDK elsewhere:
module: my_app
version: !ver 0.1.0
xu: !ver 0.16.0
require:
"github.com/xulang-org/packages": file:../xu-v0.16.0/packages
To fetch the source used by this SDK instead, select its full immutable commit:
require:
"github.com/xulang-org/packages": git:https://github.com/xulang-org/packages.git@c16af7ca38dc31c289ca83670edf153f1f85f5f2
From your project directory, resolve and lock dependencies, then check and build:
xu install
xu check main.xu --offline
xu build main.xu -o my_app
Module versions and Git tags have separate roles: this bundle declares module version 1.0.2. The fixed source locator above selects the exact source independently of tag availability. Keep xu.lock with your application and consult modules and dependencies for frozen, vendor and proxy workflows.
2. Importing Packages in Source Code
Xu enforces an explicit namespace alias convention for all external packages: alias #full/module/path/pkg. This eliminates global namespace pollution and makes all external dependencies visible directly at the top of the file.
@main
// 1. Standard library modules have no alias; prefixed with #
#database/sql
// 2. External packages declare an alias and full repository path
mysql #github.com/xulang-org/packages/mysql
redis #github.com/xulang-org/packages/redis
postgres #github.com/xulang-org/packages/postgres
fn main() int {
// Access APIs directly through the declared alias
println("Drivers loaded successfully")
<< 0
}Important: Do not write #mysql or #redis. External module imports require an explicit alias and full module path. Standard library imports and local package imports (such as #util) follow their own resolution rules. The integrations listed here belong to github.com/xulang-org/packages; other external modules have their own identities.
3. Hands-on Quickstart Examples
Example 1: Using the MySQL Driver with database/sql
The standard library database/sql provides connection pooling, transactions, and result row abstractions; the concrete MySQL driver is implemented by packages/mysql:
@main
#database/sql
mysql #github.com/xulang-org/packages/mysql
fn main() int {
dsn := "root:123456@tcp(127.0.0.1:3306)/test_db?tls=false"
$db := sql.open(mysql.driver(), dsn)
db.ping() >>> (err) {
println("Database ping failed: " + err.msg())
<< 1
}
println("Connected to MySQL successfully!")
db.close() >>> (err) { << 1 }
<< 0
}Example 2: Redis Client Operations
@main
redis #github.com/xulang-org/packages/redis
fn main() int {
$client := redis.open("127.0.0.1:6379") >>> (err) {
println("Redis connect error: " + err.msg())
<< 1
}
client.set("app_version", "demo") >>> (err) { << 1 }
val := client.get("app_version") >>> (err) { << 1 }
println("Key 'app_version': " + val)
client.close()
<< 0
}Example 3: Object Storage with S3 / MinIO
@main
s3 #github.com/xulang-org/packages/s3
fn main() int {
$client := s3.open("http://127.0.0.1:9000", "access_key", "secret_key", "us-east-1")
client.put_object("my-bucket", "welcome.txt", "Hello from Xu!", "text/plain") >>> (err) {
println("S3 upload failed: " + err.msg())
<< 1
}
println("Object uploaded successfully")
<< 0
}4. Package Catalog & One-Line Import Snippets
The catalog covers 30 packages bundled with the SDK, including the shared transport package, and 17 AI and GPU packages from the standalone module. You can copy-paste the exact import snippet into your code:
The status columns describe source paths in the SDK bundle and standalone module, including client.xu, authentication files, tls.xu helpers and transport/mod.xu. They are source evidence, not service interoperability or platform acceptance results. unknown means the capability has not been proven here.
TLS paths: HTTPS business requests use the shared TLS connection path; their legacy manual fd pools remain plaintext. A TLS byte-stream helper only provides tls_connect / tls_connect_config and raw reads / writes; it does not establish that the package’s ordinary authenticated client or pool runs over TLS. That integration is explicitly unknown. SMTP STARTTLS and DNS-over-TLS query integration are unknown. The default TLS configuration verifies certificates and hostnames; these source paths have not been exercised against every service here.
Platform: Network drivers use native sockets and are local SDK paths, outside the browser playground subset. Per-OS / architecture acceptance is unknown for every row. SQLite now uses pure Xu sqlite_native dynamic loading, without requiring static .xulib slices. See download boundaries and status.
| Category | Package | Service | One-Line Import Snippet | API Reference | Protocol scope | Authentication | TLS path | Platform / acceptance |
|---|---|---|---|---|---|---|---|---|
| Databases | mysql | MySQL / MariaDB | mysql #github.com/xulang-org/packages/mysql | API Reference | MySQL text protocol | mysql_native_password; caching_sha2_password rejected | DSN TLS upgrade with certificate / hostname checks | Native sockets; acceptance unknown |
| Databases | postgres | PostgreSQL | postgres #github.com/xulang-org/packages/postgres | API Reference | PostgreSQL wire 3.0 | Trust / cleartext / MD5 / SCRAM-SHA-256 | SSLRequest upgrade; require / verify-ca / verify-full | Native sockets; acceptance unknown |
| Databases | sqlite | SQLite Embedded | sqlite #github.com/xulang-org/packages/sqlite | API Reference | Embedded SQLite C API | Not applicable (embedded) | Not applicable (no network transport) | Pure Xu dynamic loading; no .xulib; target acceptance unknown |
| Databases | clickhouse | ClickHouse Columnar | clickhouse #github.com/xulang-org/packages/clickhouse | API Reference | HTTP SQL requests | X-ClickHouse-User / Key headers | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Databases | mongodb | MongoDB Document DB | mongodb #github.com/xulang-org/packages/mongodb | API Reference | OP_MSG subset; no compression / topology discovery | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Databases | cassandra | Apache Cassandra | cassandra #github.com/xulang-org/packages/cassandra | API Reference | CQL binary v4; startup / queries | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Databases | neo4j | Neo4j Graph Database | neo4j #github.com/xulang-org/packages/neo4j | API Reference | HTTP Cypher transactions; no Bolt claim | HTTP Basic | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Caches | redis | Redis High-Speed Cache | redis #github.com/xulang-org/packages/redis | API Reference | RESP2 and bounded RESP3 types | Password AUTH; ACL username support unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Caches | memcached | Memcached | memcached #github.com/xulang-org/packages/memcached | API Reference | Text commands | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Messaging | kafka | Apache Kafka | kafka #github.com/xulang-org/packages/kafka | API Reference | Produce v3 / Fetch v4 subset; uncompressed records | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Messaging | rabbitmq | RabbitMQ / AMQP | rabbitmq #github.com/xulang-org/packages/rabbitmq | API Reference | AMQP 0-9-1 subset | SASL PLAIN | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Messaging | nats | NATS High Throughput | nats #github.com/xulang-org/packages/nats | API Reference | NATS text protocol | User / password CONNECT | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Messaging | mqtt | MQTT IoT Protocol | mqtt #github.com/xulang-org/packages/mqtt | API Reference | MQTT 3.1.1; QoS 0 / 1 | CONNECT username / password | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Coordination | etcd | etcd v3 Distributed KV | etcd #github.com/xulang-org/packages/etcd | API Reference | v3 HTTP/JSON gateway; not native gRPC | unknown | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Coordination | consul | HashiCorp Consul | consul #github.com/xulang-org/packages/consul | API Reference | HTTP API | X-Consul-Token header | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Coordination | zookeeper | Apache ZooKeeper | zookeeper #github.com/xulang-org/packages/zookeeper | API Reference | Four-letter admin commands; not a session client | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Coordination | nacos | Alibaba Nacos | nacos #github.com/xulang-org/packages/nacos | API Reference | HTTP OpenAPI subset | unknown | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Search | elasticsearch | Elasticsearch / OpenSearch | elasticsearch #github.com/xulang-org/packages/elasticsearch | API Reference | HTTP/JSON API subset | unknown | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Search | meilisearch | Meilisearch Engine | meilisearch #github.com/xulang-org/packages/meilisearch | API Reference | HTTP/JSON; integer document IDs | Bearer API key | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Observability | prometheus | Prometheus Metrics | prometheus #github.com/xulang-org/packages/prometheus | API Reference | Text metrics / HTTP Pushgateway | unknown | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Observability | influxdb | InfluxDB Time Series | influxdb #github.com/xulang-org/packages/influxdb | API Reference | HTTP API / line protocol | Authorization: Token | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Vectors & AI | milvus | Milvus Vector DB | milvus #github.com/xulang-org/packages/milvus | API Reference | REST v2 search; integer IDs | Bearer token field | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Vectors & AI | qdrant | Qdrant Vector Engine | qdrant #github.com/xulang-org/packages/qdrant | API Reference | HTTP/JSON API subset | api-key header | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Vectors & AI | chroma | Chroma Embeddings DB | chroma #github.com/xulang-org/packages/chroma | API Reference | HTTP/JSON API subset | unknown | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Storage | s3 | AWS S3 / MinIO Protocol | s3 #github.com/xulang-org/packages/s3 | API Reference | S3 HTTP object API subset | AWS SigV4 | HTTPS request path; fd pools remain plaintext | Native sockets; acceptance unknown |
| Protocols | grpc | gRPC / HTTP/2 Client | grpc #github.com/xulang-org/packages/grpc | API Reference | HTTP/2 unary; no streaming / compression | unknown | HTTPS unary with ALPN h2; fd pool is h2c | Native sockets; acceptance unknown |
| Protocols | websocket | WebSocket Full-Duplex | websocket #github.com/xulang-org/packages/websocket | API Reference | HTTP Upgrade / WebSocket frames | unknown | wss via connect_secure; retain transport.Conn | Native sockets; acceptance unknown |
| Protocols | dns | DNS Custom Resolver | dns #github.com/xulang-org/packages/dns | API Reference | TCP DNS A-record queries; not UDP | unknown | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Protocols | smtp | SMTP Mail Delivery | smtp #github.com/xulang-org/packages/smtp | API Reference | SMTP mail delivery | AUTH LOGIN | TLS byte-stream helper; client TLS unknown | Native sockets; acceptance unknown |
| Shared transport | transport | TCP / TLS / HTTP framing | transport #github.com/xulang-org/packages/transport | API Reference | TCP / TLS; HTTP/1.x response framing | Application-level authentication unknown | crypto/tls via dial; custom tls.Config | Native sockets; acceptance unknown |
| AI APIs | openai | OpenAI-Compatible LLM APIs | openai #github.com/xulang-org/packages/openai | API Reference | Chat, Responses, Files, Batches, Audio, Images & Embeddings | Bearer API key | HTTPS via #net/http | Native sockets; acceptance unknown |
| AI APIs | anthropic | Anthropic Messages API | anthropic #github.com/xulang-org/packages/anthropic | API Reference | /v1/messages sync, SSE streaming, tools & vision | x-api-key header | HTTPS via #net/http | Native sockets; acceptance unknown |
| AI APIs | gemini | Google Gemini API | gemini #github.com/xulang-org/packages/gemini | API Reference | generateContent, streamGenerateContent SSE & embedContent | x-goog-api-key header | HTTPS via #net/http | Native sockets; acceptance unknown |
| AI APIs | cohere | Cohere v2 Chat / Embed / Rerank | cohere #github.com/xulang-org/packages/cohere | API Reference | /v2/chat, /v2/embed & /v2/rerank | Bearer API key | HTTPS via #net/http | Native sockets; acceptance unknown |
| AI Orchestration | gateway | Multi-Provider LLM Gateway | gateway #github.com/xulang-org/packages/gateway | API Reference | Failover, weighted routing, semantic cache & Redis state | Delegates to configured provider clients | Delegates to configured provider clients | Native sockets / Redis; acceptance unknown |
| AI Protocols | mcp | Model Context Protocol (2025-03-26) | mcp #github.com/xulang-org/packages/mcp | API Reference | JSON-RPC 2.0 stdio & Streamable HTTP server / client | Optional Bearer token / custom headers | HTTPS for remote endpoints; local stdio / HTTP server | Native sockets / stdio; acceptance unknown |
| AI Protocols | a2a | Agent-to-Agent (A2A) Protocol | a2a #github.com/xulang-org/packages/a2a | API Reference | AgentCard discovery, JSON-RPC 2.0 & tasks/sendSubscribe SSE | Server auth unknown | Client via #net/http; built-in server is plaintext HTTP | Native sockets; acceptance unknown |
| AI Orchestration | agent | Tool / Swarm / StateGraph Runtime | agent #github.com/xulang-org/packages/agent | API Reference | Multi-turn tools, AgentSwarm, HITL StateGraph & SKILL.md | Delegates to configured provider clients | Delegates to configured provider clients | Local SDK runtime; acceptance unknown |
| AI Tooling | prompt | Prompt Templates & Few-Shot | prompt #github.com/xulang-org/packages/prompt | API Reference | PromptRegistry rendering, #tensor few-shot & JSON extraction | Not applicable (local library) | Not applicable (no network transport) | Local SDK library; acceptance unknown |
| AI Safety | guardrails | Guardrails & PII / Injection Filters | guardrails #github.com/xulang-org/packages/guardrails | API Reference | PII redaction, injection/leak checks & optional model safety | Optional OpenAI client delegation | Optional HTTPS via OpenAI client; local otherwise | Local SDK library; acceptance unknown |
| AI Evaluation | eval | LLM & RAG Evaluation Suites | eval #github.com/xulang-org/packages/eval | API Reference | BLEU/ROUGE/F1, Ragas Triad, calibration & LLM-as-Judge | Optional judge client delegation | Optional HTTPS via judge client; local otherwise | Local SDK library; acceptance unknown |
| Vectors & AI | rag | Hybrid & GraphRAG Retrieval | rag #github.com/xulang-org/packages/rag | API Reference | PgVectorClient, SqliteVectorStore, QdrantVectorStore & GraphRAG | Delegates to postgres / qdrant / provider clients | Delegates to postgres / qdrant / provider clients | Local SDK / native sockets; acceptance unknown |
| AI Data | synth | Synthetic SFT / DPO / RLVR Datasets | synth #github.com/xulang-org/packages/synth | API Reference | SFT/DPO generation, distillation, dedup & JSONL export | Delegates to configured OpenAI client | Delegates to configured OpenAI client | Local SDK / native sockets; acceptance unknown |
| GPU Compute | gpu | Unified GPU Backend Facade | gpu #github.com/xulang-org/packages/gpu | API Reference | Backend selection over Metal / CUDA / Vulkan | Not applicable (local GPU) | Not applicable (no network transport) | Native GPU FFI; target acceptance unknown |
| GPU Compute | llm_metal | Metal GPU LLM K-Quant GEMV | llm_metal #github.com/xulang-org/packages/llm_metal | API Reference | Apple Silicon Metal K-quant SIMD GEMV inference kernels | Not applicable (local GPU) | Not applicable (no network transport) | Apple Silicon macOS Metal FFI; target acceptance unknown |
| GPU Compute | cuda_native | NVIDIA CUDA Native Bindings | cuda_native #github.com/xulang-org/packages/cuda_native | API Reference | Pure-Xu dlopen CUDA runtime & kernel dispatch | Not applicable (local GPU) | Not applicable (no network transport) | Native CUDA FFI; target acceptance unknown |
| GPU Compute | vulkan_native | Vulkan SPIR-V Compute Bindings | vulkan_native #github.com/xulang-org/packages/vulkan_native | API Reference | Pure-Xu dlopen Vulkan compute & SPIR-V shaders | Not applicable (local GPU) | Not applicable (no network transport) | Native Vulkan FFI; target acceptance unknown |
5. Boundaries & Production Builds
- SQLite & Multi-Backend GPU Pure-FFI Architecture: The SQLite driver dynamically loads (
dlopen) systemlibsqlite3via pure-Xusqlite_native(Windows automatically uses built-inwinsqlite3.dll, overridable viaXU_SQLITE_LIBRARY), eliminating static.xulibslices. CUDA and Vulkan use the same pure-Xudlopenmodel (cuda_native/vulkan_native), while Metal GPU dynamically loadslibxu_metal.dylibviametal_native(built withpython3 metal/native/build.py, overridable viaXU_METAL_LIBRARY). - Frozen Builds in Production: For immutable CI/CD deployment pipelines, commit the generated
vendor/directory andxu.lockto Git, then runxu build main.xu --frozen. This strictly forbids outbound network calls during build for 100% reproducible builds.
For more details on MVS resolution, checksum verification, and private proxies, see: Modules and Dependencies Specification and Native Modules Specification.
AI Packages & Multi-Backend GPU Compute (v1.17.0 · 50 packages)
Alongside the 30 packages bundled with the SDK, the standalone github.com/xulang-org/packages repository (v1.17.0, 50 packages total) adds pure-Xu AI, agent, protocol, and multi-backend GPU packages organized across four areas:
1. Multi-Backend GPU & Local GPU LLM Inference
| Package | Import Path | Capabilities |
|---|---|---|
gpu | gpu #github.com/xulang-org/packages/gpu | Unified GPU facade (BACKEND_METAL / CUDA / VULKAN / CPU) with detect_backends, open_auto, open_backend, and unified matrix ops |
llm_metal | llm_metal #github.com/xulang-org/packages/llm_metal | End-to-end Apple Silicon GPU Transformer engine: load_gguf / load_safetensors / load_model, MetalKVCache / MetalPagedKVCache, generate_paged, and MetalLoRA (train_lora_step) |
metal / metal_native | metal #github.com/xulang-org/packages/metal | 176 Metal GPU symbols: F32/F16/Q4–Q6KMatrix (up to 262,144 dim), Metal K-quant SIMD GEMV, FlashAttention/FlashDecode, PagedAttention F16, MoE & LoRA backprop |
cuda_native | cuda_native #github.com/xulang-org/packages/cuda_native | Pure-Xu dlopen loader for CUDA Driver API, NVRTC, and cuBLAS (XU_CUDA_LIBRARY overrides, zero C wrapper) |
vulkan_native | vulkan_native #github.com/xulang-org/packages/vulkan_native | Pure-Xu dlopen Vulkan 1.1 compute pipelines + pure-Xu SPIR-V 1.0 generator (spirv.xu) across Linux, Windows, and MoltenVK |
2. LLM Clients, Heterogeneous Gateway & Prompts
| Package | Import Path | Capabilities |
|---|---|---|
openai | openai #github.com/xulang-org/packages/openai | 11 presets (DeepSeek, OpenRouter, Groq, Qwen, Mistral, MiniMax, etc.), Chat/Responses API, Files/Batches, Whisper/TTS, Images & Rerank |
anthropic | anthropic #github.com/xulang-org/packages/anthropic | Messages API (/v1/messages), Prompt Caching, extended thinking, vision blocks, and chunked tool_use SSE merging |
gemini | gemini #github.com/xulang-org/packages/gemini | Gemini REST (generate* / streamGenerateContent?alt=sse), response_schema_json, thinking_budget, and batchEmbedContents |
cohere | cohere #github.com/xulang-org/packages/cohere | Native Cohere v2 client (chat, float embed, and rerank) |
gateway | gateway #github.com/xulang-org/packages/gateway | Cross-provider (OpenAI/Anthropic/Gemini) weighted routing & sync/SSE failover, circuit breakers & RPM limits, ProviderPassthrough, cost tracking, and Redis distributed state (set_redis_pool / set_redis_url) |
prompt | prompt #github.com/xulang-org/packages/prompt | Versioned PromptRegistry, #tensor dynamic few-shot selection, and Markdown JSON block extraction |
3. Agents, Open Protocols & RAG Retrieval
| Package | Import Path | Capabilities |
|---|---|---|
agent | agent #github.com/xulang-org/packages/agent | 4-runtime parity (OpenAI Chat/Responses, Anthropic, Gemini), cross-provider AgentSwarm, pluggable set_token_counter, SQLite memory/session/graph checkpoints, SKILL.md skills, parallel HITL StateGraph, and OTLP/Prometheus tracing |
mcp | mcp #github.com/xulang-org/packages/mcp | Model Context Protocol JSON-RPC 2.0 (2025-03-26) bidirectional stdio & Streamable HTTP servers/clients and SSE negotiation |
a2a | a2a #github.com/xulang-org/packages/a2a | AgentCard discovery, JSON-RPC 2.0 tasks, live SSE tasks/sendSubscribe, plus API Key / hook auth and SQLite task storage (v1.16.0) |
rag | rag #github.com/xulang-org/packages/rag | Pooled PgVectorPool (v1.16.0), PgVectorClient, cached persistent SqliteVectorStore (cached_len / refresh_cache), QdrantVectorStore, automated GraphRAG KnowledgeGraph, and chunking/rerank pipelines |
4. Guardrails, Evaluation & Synthetic Data
| Package | Import Path | Capabilities |
|---|---|---|
guardrails | guardrails #github.com/xulang-org/packages/guardrails | PII/secret redaction, prompt injection & canary leak guards, RAG sanitization, check_safety_openai, and strict_policy / normalize_for_detection / check_input_strict (v1.16.0) |
eval | eval #github.com/xulang-org/packages/eval | exact_match, F1, ROUGE, BLEU, evaluate_json_schema_raw JSON Schema checks, pass_at_k, ECE, Ragas Triad & LLM-as-a-Judge regression gating |
synth | synth #github.com/xulang-org/packages/synth | SFT/DPO/RLVR generation & distillation, exact & Jaccard n-gram deduplication, quality filters, and llm_engine JSONL export |
AI Package & Driver Known Boundaries
Production checklist: The following boundaries describe the Xu v0.15.0 and packages v1.17.0 source; configure reverse proxies, external stores, or model checks accordingly before production rollout.
- Hardware & host prerequisites across GPU backends:
metalandllm_metaltarget Apple Silicon macOS only (buildinglibxu_metal.dylibor overridingXU_METAL_LIBRARY);cuda_nativerequires host NVIDIA driver / NVRTC / cuBLAS libraries;vulkan_nativerequires a Vulkan 1.1 runtime. Meanwhile,xu/examples/llm_engineremains CPU multi-threaded (--threads N) rather than callingllm_metalor CUDA. - Built-in signing & pure-Xu SQLite loading: Since
Xu v0.14.3,xu buildembeds Mach-OLC_CODE_SIGNATUREad-hoc signing directly (no manualcodesignrequired); SQLite uses pure-Xusqlite_nativedynamic loading without.xulibcompilation. - Vector store scale:
PgVectorPoolprovides pooled concurrent connections via#database/sql(while single-connectionPgVectorClientremains available for backwards compatibility);rag.SqliteVectorStoreadds cache refresh helpers, though queries still scan loaded rows ($O(N)$ exact search — best under ~10k chunks; usePgVectorPoolHNSW orQdrantVectorStorebeyond that). - Gateway, A2A & guardrails operational notes:
gatewaysupports Redis-backed shared state inv1.16.0+, though SSE failover still switches only before the first chunk arrives and cross-provider mapping targets common fields;a2asupports API key / custom auth hooks and SQLite persistence, while TLS termination still belongs in a front reverse proxy; pairguardrails.strict_policywithcheck_safety_openaiagainst adversarial evasion.
Build the Metal native library (optional macOS)
Applications that do not import metal, llm_metal, or the Metal backend do not need to build Metal native assets. Before using Metal GPU compute on Apple Silicon macOS, build its shared dynamic library:
cd packages
python3 metal/native/build.py