MCPcopy Index your code
hub / github.com/0xLazAI/alith

github.com/0xLazAI/alith @v0.12.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.12.3 ↗ · + Follow
2,469 symbols 6,455 edges 452 files 404 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://github.com/0xLazAI/alith/raw/v0.12.3/imgs/logo.png" alt="Alith Logo" style="width: 80px;" />

Simple, Composable, High-Performance, Safe and Web3 Friendly AI Agents for Everyone

Introduction

Alith is an AI agent framework designed for the Web3 and Crypto, empowering developers to quickly build, deploy, and manage on-chain AI agents. By integrating blockchain technology, AI/ML models, and developer-friendly tools, Alith provides a modular and extensible platform that supports AI bots, multi-chain interactions, smart contract operations, real-time data processing, and high-performance inference. Whether you're building DeFi trading bots, NFT analyzers, or DAO governance tools, Alith offers robust support for your projects.

Besides, Alith is a decentralized AI agent framework tailored to harness the capabilities of the LazAI - a decentralized AI platform dedicated to building an open, transparent, high-performance, secure, and inclusive AI ecosystem. For more introduction and comparison, see our website.

Features

  • LazAI Gateway: Support the most basic wallet management, transfer, sending transactions, as well as LazAI's privacy data, iDAO, DAT, verified computing and other core features.
  • Multiple Model Support: Support for small models and large language models e.g., Llama, Grok, OpenAI, Anthropic, etc.
  • Highly Extensible: From covering internal prompts to accessing low-level APIs. Customize roles, goals, tools, actions and behaviors while maintaining a clean abstraction.
  • Workflow Support: Implementing any workflow pattern through processes - from simple sequential and hierarchical processes to complex custom orchestration patterns with conditional branching and parallel execution.
  • Cross-Language Support: Provides SDKs for Rust, Python and Node.js, making it easily accessible to different developers.
  • High-Performance AI Training and Inference: Leverage the performance advantages of Rust and quick model training and inference technologies including graph optimization, model compression, JIT/AOT compilation with GPU coprocessors, etc.
  • Web3 Friendly and Secure: Out-of-the-box Web3 plugin allows developers to easily and securely integrate blockchain capabilities into TEE-based AI agent frameworks and their applications with privacy data.

Architecture

<img src="https://github.com/0xLazAI/alith/raw/v0.12.3/imgs/alith.png" alt="Alith Arch" />

Quick Start

See documents here.

Contributing

We warmly welcome contributions to Alith! Whether you're a developer, a user reporting a bug, or someone eager to enhance our documentation, your participation is highly valued!

Contact

Follow our X/Twitter and join our Telegram.

License

Apache 2.0

Extension points exported contracts — how you extend this code

Completion (Interface)
A trait defining the behavior of a completion engine. This trait is used by components that handle requests for text ge [5 …
crates/core/src/chat.rs
Store (Interface)
(no doc) [10 implementers]
sdks/node/src/store.ts
GrammarSetterTrait (Interface)
(no doc) [10 implementers]
crates/client/src/components/grammar/mod.rs
LoggingConfigTrait (Interface)
(no doc) [6 implementers]
crates/devices/src/logging.rs
LLMApiConfigTrait (Interface)
(no doc) [6 implementers]
crates/interface/src/llms/api/config.rs
FromValue (Interface)
(no doc) [7 implementers]
crates/models/src/local_model/gguf/tools/gguf_file.rs
PromptTokenizer (Interface)
A trait for tokenizers that can be used with the prompt management system. This trait defines the core functionality ne [2 …
crates/prompt/src/prompt_tokenizer.rs
DataStorage (Interface)
(no doc) [4 implementers]
crates/data/src/storage.rs

Core symbols most depended-on inside this repo

to_string
called by 254
crates/models/src/local_model/gguf/tools/gguf_file.rs
clone
called by 176
crates/core/src/llm/client.rs
to_string
called by 159
crates/core/src/memory.rs
as_ref
called by 130
crates/lazai/src/client.rs
last_round
called by 76
crates/client/src/components/cascade/mod.rs
send_transaction
called by 62
crates/lazai/src/client.rs
get_value
called by 46
crates/models/src/local_model/gguf/tools/gguf_file.rs
clone
called by 41
crates/interface/src/requests/completion/request.rs

Shape

Method 1,679
Class 376
Function 292
Enum 61
Interface 54
Route 7

Languages

Rust75%
Python13%
TypeScript13%

Modules by API surface

sdks/node/src/lazai/client.ts77 symbols
crates/lazai/src/client.rs76 symbols
sdks/python/alith/lazai/client.py67 symbols
crates/interface/src/requests/logit_bias.rs34 symbols
crates/models/src/local_model/gguf/tools/gguf_file.rs30 symbols
crates/core/src/chunking.rs30 symbols
crates/core/src/splitting.rs28 symbols
sdks/node/src/tee/phala.ts27 symbols
crates/models/src/tokenizer.rs25 symbols
crates/core/src/tool.rs25 symbols
sdks/node/src/memory.ts24 symbols
crates/prompt/src/llm_prompt.rs24 symbols

For agents

$ claude mcp add alith \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact