File size: 1,507 Bytes
d324c0b
17b6773
 
 
 
d324c0b
 
 
480703a
d324c0b
 
17b6773
89d226e
480703a
89d226e
480703a
89d226e
 
 
480703a
 
89d226e
480703a
 
 
89d226e
480703a
f5c05dd
480703a
 
 
89d226e
480703a
89d226e
480703a
89d226e
e717dfb
89d226e
480703a
89d226e
480703a
89d226e
 
 
480703a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: NanoClaw AI Assistant
emoji: 🦀
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
short_description: Lightweight, secure, customizable AI assistant via Feishu
---

# NanoClaw AI Assistant

> Your own personal AI assistant. Optimized for Feishu (Lark) and powered by Claude Agent SDK. 🦀

This Hugging Face Space runs **NanoClaw**, a lightweight agent host optimized for security and performance.

## Quick Start

1. **Configure Feishu**: Create an app in the [Feishu Developer Console](https://open.feishu.cn/), enable **WebSocket** (Long Connection) for events, and add the bot to your chat.
2. **Set Environment Variables**: In your Space settings, add the following **Secrets**:

### 📡 Feishu (Lark)
- `FEISHU_APP_ID`: Your app ID.
- `FEISHU_APP_SECRET`: Your app secret.

### 🤖 LLM (CLIProxyAPI)
- `ANTHROPIC_BASE_URL`: Proxy endpoint (e.g., `http://127.0.0.1:8317`).
- `ANTHROPIC_AUTH_TOKEN`: Your API token.
- `ANTHROPIC_MODEL`: Primary model (e.g., `gemini-2.5-pro`).
- `ANTHROPIC_SMALL_FAST_MODEL`: Fallback model (e.g., `gemini-2.5-flash`).

## Usage

Simply message your bot in Feishu. The first chat to message the bot will automatically be registered as the **Main Channel** (Admin).

- **Direct Messages & Group Chats**: No trigger word needed. The bot will respond to all messages in registered chats.

## Deployment

The Docker image for this space is auto-generated from the [nanoclaw](https://github.com/sim4d/nanoclaw) repository.

## License

MIT