freehand-agent 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- freehand_agent-0.1.0/LICENSE +21 -0
- freehand_agent-0.1.0/PKG-INFO +248 -0
- freehand_agent-0.1.0/README.md +200 -0
- freehand_agent-0.1.0/core/__init__.py +3 -0
- freehand_agent-0.1.0/core/agent.py +302 -0
- freehand_agent-0.1.0/core/agent_config.py +361 -0
- freehand_agent-0.1.0/core/agents/__init__.py +28 -0
- freehand_agent-0.1.0/core/agents/detector.py +221 -0
- freehand_agent-0.1.0/core/agents/generic.py +33 -0
- freehand_agent-0.1.0/core/agents/hermes.py +119 -0
- freehand_agent-0.1.0/core/agents/merger.py +126 -0
- freehand_agent-0.1.0/core/agents/models.py +69 -0
- freehand_agent-0.1.0/core/agents/openclaw.py +88 -0
- freehand_agent-0.1.0/core/agents/state_extractor.py +183 -0
- freehand_agent-0.1.0/core/database.py +121 -0
- freehand_agent-0.1.0/core/gateway.py +403 -0
- freehand_agent-0.1.0/core/memory.py +177 -0
- freehand_agent-0.1.0/core/oauth/__init__.py +37 -0
- freehand_agent-0.1.0/core/oauth/connector.py +28 -0
- freehand_agent-0.1.0/core/oauth/manager.py +214 -0
- freehand_agent-0.1.0/core/oauth/providers/__init__.py +39 -0
- freehand_agent-0.1.0/core/oauth/providers/email.py +74 -0
- freehand_agent-0.1.0/core/oauth/providers/facebook.py +97 -0
- freehand_agent-0.1.0/core/oauth/providers/github_pat.py +90 -0
- freehand_agent-0.1.0/core/oauth/providers/google.py +142 -0
- freehand_agent-0.1.0/core/oauth/providers/instagram.py +97 -0
- freehand_agent-0.1.0/core/oauth/providers/microsoft.py +139 -0
- freehand_agent-0.1.0/core/oauth/providers/zoom.py +117 -0
- freehand_agent-0.1.0/core/oauth/router.py +259 -0
- freehand_agent-0.1.0/core/scheduler.py +238 -0
- freehand_agent-0.1.0/core/security.py +296 -0
- freehand_agent-0.1.0/core/tools/__init__.py +31 -0
- freehand_agent-0.1.0/core/tools/browser.py +357 -0
- freehand_agent-0.1.0/core/tools/integrations.py +446 -0
- freehand_agent-0.1.0/core/tools/office.py +303 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/PKG-INFO +248 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/SOURCES.txt +43 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/dependency_links.txt +1 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/entry_points.txt +2 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/requires.txt +21 -0
- freehand_agent-0.1.0/freehand_agent.egg-info/top_level.txt +1 -0
- freehand_agent-0.1.0/pyproject.toml +75 -0
- freehand_agent-0.1.0/setup.cfg +4 -0
- freehand_agent-0.1.0/tests/test_agents.py +102 -0
- freehand_agent-0.1.0/tests/test_integration.py +134 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tracy Smith Consulting
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: freehand-agent
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: FreeHand — Local AI agent with Tailscale access, OAuth integrations, and cross-agent memory import
|
|
5
|
+
Author-email: Tracy Smith <tracy@tracysmith.co.za>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://freehand.tracysmith.co.za
|
|
8
|
+
Project-URL: Documentation, https://github.com/TracySmithConsulting/freehand#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/TracySmithConsulting/freehand
|
|
10
|
+
Project-URL: Issues, https://github.com/TracySmithConsulting/freehand/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/TracySmithConsulting/freehand/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: ai,agent,oauth,local,tailscale,gmail,zoom,github
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Environment :: Web Environment
|
|
16
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Classifier: Topic :: Utilities
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: fastapi>=0.104.0
|
|
29
|
+
Requires-Dist: uvicorn[standard]>=0.24.0
|
|
30
|
+
Requires-Dist: typer>=0.9.0
|
|
31
|
+
Requires-Dist: apscheduler>=3.10
|
|
32
|
+
Requires-Dist: aiohttp>=3.9
|
|
33
|
+
Requires-Dist: python-docx>=1.0
|
|
34
|
+
Requires-Dist: openpyxl>=3.1
|
|
35
|
+
Requires-Dist: python-pptx>=1.0
|
|
36
|
+
Requires-Dist: authlib>=1.3.0
|
|
37
|
+
Requires-Dist: cryptography>=42.0.0
|
|
38
|
+
Provides-Extra: dev
|
|
39
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
40
|
+
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
|
|
41
|
+
Requires-Dist: fastapi[test]; extra == "dev"
|
|
42
|
+
Requires-Dist: httpx>=0.27; extra == "dev"
|
|
43
|
+
Requires-Dist: build; extra == "dev"
|
|
44
|
+
Requires-Dist: twine; extra == "dev"
|
|
45
|
+
Provides-Extra: browser
|
|
46
|
+
Requires-Dist: playwright>=1.40; extra == "browser"
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
|
|
49
|
+
# FreeHand
|
|
50
|
+
|
|
51
|
+
**Your local AI agent, on your devices, in your channels.**
|
|
52
|
+
|
|
53
|
+
FreeHand is a local-first AI agent system with OAuth integrations, cross-agent memory import, and Tailscale network access. Built for the South African market — free, open source, no vendor lock-in.
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
pip install freehand-agent
|
|
57
|
+
freehand serve
|
|
58
|
+
# Open http://localhost:8000
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Features
|
|
62
|
+
|
|
63
|
+
- **🔌 7 OAuth connectors** — Gmail, Outlook, Zoom, Facebook, Instagram, GitHub, custom email (IMAP/SMTP)
|
|
64
|
+
- **🔗 Cross-agent memory import** — automatically detects and imports memories from Hermes Agent and OpenClaw
|
|
65
|
+
- **🛠 17 agent tools** — email, calendar, sheets, GitHub, Zoom, browser automation, document processing
|
|
66
|
+
- **🔒 Permission tiers** — Autonomous, Semi-Autonomous, God Mode with approval workflows
|
|
67
|
+
- **💬 Remote gateways** — Telegram, Slack, WhatsApp
|
|
68
|
+
- **🧠 FTS5 memory search** — full-text search across all vault notes
|
|
69
|
+
- **📅 Task scheduler** — cron-based task execution via scribble sweep
|
|
70
|
+
- **🔐 Encrypted token storage** — Fernet encryption for all OAuth tokens
|
|
71
|
+
- **🌐 Tailscale support** — accessible from anywhere on your tailnet
|
|
72
|
+
|
|
73
|
+
## Install
|
|
74
|
+
|
|
75
|
+
### One-command install (recommended)
|
|
76
|
+
|
|
77
|
+
**Windows (PowerShell):**
|
|
78
|
+
```powershell
|
|
79
|
+
iwr https://freehand.tracysmith.co.za/install.ps1 -useb | iex
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**macOS / Linux:**
|
|
83
|
+
```bash
|
|
84
|
+
curl -fsSL https://freehand.tracysmith.co.za/install.sh | bash
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### From PyPI
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install freehand-agent
|
|
91
|
+
freehand init
|
|
92
|
+
freehand serve
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### From source
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
git clone https://github.com/TracySmithConsulting/freehand.git
|
|
99
|
+
cd freehand
|
|
100
|
+
pip install -e ".[all]"
|
|
101
|
+
freehand init
|
|
102
|
+
freehand serve
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Quick Start
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# 1. Install
|
|
109
|
+
pip install freehand-agent
|
|
110
|
+
freehand init
|
|
111
|
+
|
|
112
|
+
# 2. Start the server
|
|
113
|
+
freehand serve
|
|
114
|
+
|
|
115
|
+
# 3. Open in browser
|
|
116
|
+
# http://localhost:8000
|
|
117
|
+
|
|
118
|
+
# 4. Connect your accounts (Settings → OAuth Credentials)
|
|
119
|
+
# See docs/OAUTH_SETUP.md for step-by-step
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## CLI Commands
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
freehand serve # Start the web server
|
|
126
|
+
freehand init # Initialize database and vault
|
|
127
|
+
freehand sweep # Process pending scribble entries
|
|
128
|
+
|
|
129
|
+
# Connections
|
|
130
|
+
freehand connect <service> # Start OAuth flow (google, microsoft, zoom, etc.)
|
|
131
|
+
freehand connections # List all connections
|
|
132
|
+
freehand disconnect <service> # Remove a connection
|
|
133
|
+
freehand test <service> # Test if connection is valid
|
|
134
|
+
|
|
135
|
+
# Agents (cross-agent import)
|
|
136
|
+
freehand agents list # Detect installed AI agents
|
|
137
|
+
freehand agents import hermes # Import from Hermes Agent
|
|
138
|
+
freehand agents import openclaw # Import from OpenClaw
|
|
139
|
+
freehand agents status # Show import history
|
|
140
|
+
freehand agents remove <agent> # Remove imported data
|
|
141
|
+
|
|
142
|
+
# Tools
|
|
143
|
+
freehand office read-docx <path>
|
|
144
|
+
freehand browser axtree <url>
|
|
145
|
+
freehand browser screenshot <url>
|
|
146
|
+
|
|
147
|
+
# Gateway
|
|
148
|
+
freehand gateway status
|
|
149
|
+
freehand gateway pair <phone>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## OAuth Setup
|
|
153
|
+
|
|
154
|
+
See [docs/OAUTH_SETUP.md](docs/OAUTH_SETUP.md) for detailed instructions on registering apps with:
|
|
155
|
+
- Google Cloud Console (Gmail, Calendar, Sheets, Meet)
|
|
156
|
+
- Microsoft Entra ID (Outlook, Teams, Calendar)
|
|
157
|
+
- Zoom Marketplace (Meetings, recordings)
|
|
158
|
+
- Meta for Developers (Facebook, Instagram)
|
|
159
|
+
- GitHub (PAT-based, no app registration needed)
|
|
160
|
+
|
|
161
|
+
## Cross-Agent Memory Import
|
|
162
|
+
|
|
163
|
+
FreeHand can detect and import memories from other AI agents installed on your system:
|
|
164
|
+
|
|
165
|
+
| Agent | What gets imported |
|
|
166
|
+
|-------|-------------------|
|
|
167
|
+
| **Hermes Agent** | SOUL.md, AGENTS.md, MEMORY.md, USER.md, config, 20+ skills, state.db (selective) |
|
|
168
|
+
| **OpenClaw** | SOUL.md, IDENTITY.md, MEMORY.md, USER.md, AGENTS.md, journal entries |
|
|
169
|
+
|
|
170
|
+
Run `freehand agents list` to detect, then `freehand agents import hermes --state` to import.
|
|
171
|
+
|
|
172
|
+
## Architecture
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
┌─────────────────────────────────────────────┐
|
|
176
|
+
│ Web UI (static/index.html) │
|
|
177
|
+
│ http://localhost:8000 │
|
|
178
|
+
└──────────────────┬──────────────────────────┘
|
|
179
|
+
│ FastAPI
|
|
180
|
+
┌──────────────────▼──────────────────────────┐
|
|
181
|
+
│ server.py core/ │
|
|
182
|
+
│ ┌─────────────┴─────────────────────────┐ │
|
|
183
|
+
│ │ /api/agent/command ← LLM agent │ │
|
|
184
|
+
│ │ /api/integrations/* ← OAuth flows │ │
|
|
185
|
+
│ │ /api/agents/* ← import mgmt │ │
|
|
186
|
+
│ │ /api/tools/* ← tool API │ │
|
|
187
|
+
│ └───────────────────────────────────────┘ │
|
|
188
|
+
│ │
|
|
189
|
+
│ core/agents/ ← detection & import │
|
|
190
|
+
│ core/oauth/ ← token management │
|
|
191
|
+
│ core/tools/ ← office, browser, integrations│
|
|
192
|
+
│ core/memory/ ← FTS5 search │
|
|
193
|
+
│ core/security/ ← permission tiers │
|
|
194
|
+
│ core/gateway/ ← Telegram/Slack/WhatsApp │
|
|
195
|
+
│ core/scheduler/ ← cron-based sweep │
|
|
196
|
+
└──────────────────┬──────────────────────────┘
|
|
197
|
+
│
|
|
198
|
+
┌──────────────────▼──────────────────────────┐
|
|
199
|
+
│ vault/ ← user data │
|
|
200
|
+
│ agent.db ← SQLite (FTS5) │
|
|
201
|
+
│ connections.json ← encrypted tokens │
|
|
202
|
+
│ imports/hermes/ ← imported memories │
|
|
203
|
+
│ imports/openclaw/ ← imported memories │
|
|
204
|
+
└─────────────────────────────────────────────┘
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## API Endpoints
|
|
208
|
+
|
|
209
|
+
| Method | Path | Description |
|
|
210
|
+
|--------|------|-------------|
|
|
211
|
+
| `GET` | `/api/v1/status` | Service status |
|
|
212
|
+
| `POST` | `/api/agent/command` | Run agent command |
|
|
213
|
+
| `GET` | `/api/integrations` | List integrations |
|
|
214
|
+
| `GET` | `/api/integrations/{service}/authorize` | Get OAuth URL |
|
|
215
|
+
| `GET` | `/api/integrations/callback/{service}` | OAuth callback |
|
|
216
|
+
| `POST` | `/api/integrations/{service}/disconnect` | Remove connection |
|
|
217
|
+
| `GET` | `/api/agents` | Detect installed agents |
|
|
218
|
+
| `POST` | `/api/agents/import` | Import from agent |
|
|
219
|
+
| `GET` | `/api/agents/imported` | Import history |
|
|
220
|
+
|
|
221
|
+
Full API reference: [API Documentation](https://github.com/TracySmithConsulting/freehand/wiki/API)
|
|
222
|
+
|
|
223
|
+
## Security
|
|
224
|
+
|
|
225
|
+
- All OAuth tokens are **encrypted at rest** using Fernet (AES-128-CBC + HMAC-SHA256)
|
|
226
|
+
- Encryption key is auto-generated on first run at `vault/encryption.key` (mode 0o600)
|
|
227
|
+
- Permission tiers enforce approval workflows for write operations
|
|
228
|
+
- Nango removed — all OAuth is handled in-process
|
|
229
|
+
- No telemetry or data collection
|
|
230
|
+
|
|
231
|
+
## License
|
|
232
|
+
|
|
233
|
+
MIT — see [LICENSE](LICENSE)
|
|
234
|
+
|
|
235
|
+
## Contributing
|
|
236
|
+
|
|
237
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
238
|
+
|
|
239
|
+
## Changelog
|
|
240
|
+
|
|
241
|
+
See [CHANGELOG.md](CHANGELOG.md)
|
|
242
|
+
|
|
243
|
+
## Links
|
|
244
|
+
|
|
245
|
+
- **Source:** https://github.com/TracySmithConsulting/freehand
|
|
246
|
+
- **PyPI:** https://pypi.org/project/freehand-agent/
|
|
247
|
+
- **Issues:** https://github.com/TracySmithConsulting/freehand/issues
|
|
248
|
+
- **Setup Guide:** docs/OAUTH_SETUP.md
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# FreeHand
|
|
2
|
+
|
|
3
|
+
**Your local AI agent, on your devices, in your channels.**
|
|
4
|
+
|
|
5
|
+
FreeHand is a local-first AI agent system with OAuth integrations, cross-agent memory import, and Tailscale network access. Built for the South African market — free, open source, no vendor lock-in.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pip install freehand-agent
|
|
9
|
+
freehand serve
|
|
10
|
+
# Open http://localhost:8000
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **🔌 7 OAuth connectors** — Gmail, Outlook, Zoom, Facebook, Instagram, GitHub, custom email (IMAP/SMTP)
|
|
16
|
+
- **🔗 Cross-agent memory import** — automatically detects and imports memories from Hermes Agent and OpenClaw
|
|
17
|
+
- **🛠 17 agent tools** — email, calendar, sheets, GitHub, Zoom, browser automation, document processing
|
|
18
|
+
- **🔒 Permission tiers** — Autonomous, Semi-Autonomous, God Mode with approval workflows
|
|
19
|
+
- **💬 Remote gateways** — Telegram, Slack, WhatsApp
|
|
20
|
+
- **🧠 FTS5 memory search** — full-text search across all vault notes
|
|
21
|
+
- **📅 Task scheduler** — cron-based task execution via scribble sweep
|
|
22
|
+
- **🔐 Encrypted token storage** — Fernet encryption for all OAuth tokens
|
|
23
|
+
- **🌐 Tailscale support** — accessible from anywhere on your tailnet
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
### One-command install (recommended)
|
|
28
|
+
|
|
29
|
+
**Windows (PowerShell):**
|
|
30
|
+
```powershell
|
|
31
|
+
iwr https://freehand.tracysmith.co.za/install.ps1 -useb | iex
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**macOS / Linux:**
|
|
35
|
+
```bash
|
|
36
|
+
curl -fsSL https://freehand.tracysmith.co.za/install.sh | bash
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### From PyPI
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install freehand-agent
|
|
43
|
+
freehand init
|
|
44
|
+
freehand serve
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### From source
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone https://github.com/TracySmithConsulting/freehand.git
|
|
51
|
+
cd freehand
|
|
52
|
+
pip install -e ".[all]"
|
|
53
|
+
freehand init
|
|
54
|
+
freehand serve
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Quick Start
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# 1. Install
|
|
61
|
+
pip install freehand-agent
|
|
62
|
+
freehand init
|
|
63
|
+
|
|
64
|
+
# 2. Start the server
|
|
65
|
+
freehand serve
|
|
66
|
+
|
|
67
|
+
# 3. Open in browser
|
|
68
|
+
# http://localhost:8000
|
|
69
|
+
|
|
70
|
+
# 4. Connect your accounts (Settings → OAuth Credentials)
|
|
71
|
+
# See docs/OAUTH_SETUP.md for step-by-step
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## CLI Commands
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
freehand serve # Start the web server
|
|
78
|
+
freehand init # Initialize database and vault
|
|
79
|
+
freehand sweep # Process pending scribble entries
|
|
80
|
+
|
|
81
|
+
# Connections
|
|
82
|
+
freehand connect <service> # Start OAuth flow (google, microsoft, zoom, etc.)
|
|
83
|
+
freehand connections # List all connections
|
|
84
|
+
freehand disconnect <service> # Remove a connection
|
|
85
|
+
freehand test <service> # Test if connection is valid
|
|
86
|
+
|
|
87
|
+
# Agents (cross-agent import)
|
|
88
|
+
freehand agents list # Detect installed AI agents
|
|
89
|
+
freehand agents import hermes # Import from Hermes Agent
|
|
90
|
+
freehand agents import openclaw # Import from OpenClaw
|
|
91
|
+
freehand agents status # Show import history
|
|
92
|
+
freehand agents remove <agent> # Remove imported data
|
|
93
|
+
|
|
94
|
+
# Tools
|
|
95
|
+
freehand office read-docx <path>
|
|
96
|
+
freehand browser axtree <url>
|
|
97
|
+
freehand browser screenshot <url>
|
|
98
|
+
|
|
99
|
+
# Gateway
|
|
100
|
+
freehand gateway status
|
|
101
|
+
freehand gateway pair <phone>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## OAuth Setup
|
|
105
|
+
|
|
106
|
+
See [docs/OAUTH_SETUP.md](docs/OAUTH_SETUP.md) for detailed instructions on registering apps with:
|
|
107
|
+
- Google Cloud Console (Gmail, Calendar, Sheets, Meet)
|
|
108
|
+
- Microsoft Entra ID (Outlook, Teams, Calendar)
|
|
109
|
+
- Zoom Marketplace (Meetings, recordings)
|
|
110
|
+
- Meta for Developers (Facebook, Instagram)
|
|
111
|
+
- GitHub (PAT-based, no app registration needed)
|
|
112
|
+
|
|
113
|
+
## Cross-Agent Memory Import
|
|
114
|
+
|
|
115
|
+
FreeHand can detect and import memories from other AI agents installed on your system:
|
|
116
|
+
|
|
117
|
+
| Agent | What gets imported |
|
|
118
|
+
|-------|-------------------|
|
|
119
|
+
| **Hermes Agent** | SOUL.md, AGENTS.md, MEMORY.md, USER.md, config, 20+ skills, state.db (selective) |
|
|
120
|
+
| **OpenClaw** | SOUL.md, IDENTITY.md, MEMORY.md, USER.md, AGENTS.md, journal entries |
|
|
121
|
+
|
|
122
|
+
Run `freehand agents list` to detect, then `freehand agents import hermes --state` to import.
|
|
123
|
+
|
|
124
|
+
## Architecture
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
┌─────────────────────────────────────────────┐
|
|
128
|
+
│ Web UI (static/index.html) │
|
|
129
|
+
│ http://localhost:8000 │
|
|
130
|
+
└──────────────────┬──────────────────────────┘
|
|
131
|
+
│ FastAPI
|
|
132
|
+
┌──────────────────▼──────────────────────────┐
|
|
133
|
+
│ server.py core/ │
|
|
134
|
+
│ ┌─────────────┴─────────────────────────┐ │
|
|
135
|
+
│ │ /api/agent/command ← LLM agent │ │
|
|
136
|
+
│ │ /api/integrations/* ← OAuth flows │ │
|
|
137
|
+
│ │ /api/agents/* ← import mgmt │ │
|
|
138
|
+
│ │ /api/tools/* ← tool API │ │
|
|
139
|
+
│ └───────────────────────────────────────┘ │
|
|
140
|
+
│ │
|
|
141
|
+
│ core/agents/ ← detection & import │
|
|
142
|
+
│ core/oauth/ ← token management │
|
|
143
|
+
│ core/tools/ ← office, browser, integrations│
|
|
144
|
+
│ core/memory/ ← FTS5 search │
|
|
145
|
+
│ core/security/ ← permission tiers │
|
|
146
|
+
│ core/gateway/ ← Telegram/Slack/WhatsApp │
|
|
147
|
+
│ core/scheduler/ ← cron-based sweep │
|
|
148
|
+
└──────────────────┬──────────────────────────┘
|
|
149
|
+
│
|
|
150
|
+
┌──────────────────▼──────────────────────────┐
|
|
151
|
+
│ vault/ ← user data │
|
|
152
|
+
│ agent.db ← SQLite (FTS5) │
|
|
153
|
+
│ connections.json ← encrypted tokens │
|
|
154
|
+
│ imports/hermes/ ← imported memories │
|
|
155
|
+
│ imports/openclaw/ ← imported memories │
|
|
156
|
+
└─────────────────────────────────────────────┘
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## API Endpoints
|
|
160
|
+
|
|
161
|
+
| Method | Path | Description |
|
|
162
|
+
|--------|------|-------------|
|
|
163
|
+
| `GET` | `/api/v1/status` | Service status |
|
|
164
|
+
| `POST` | `/api/agent/command` | Run agent command |
|
|
165
|
+
| `GET` | `/api/integrations` | List integrations |
|
|
166
|
+
| `GET` | `/api/integrations/{service}/authorize` | Get OAuth URL |
|
|
167
|
+
| `GET` | `/api/integrations/callback/{service}` | OAuth callback |
|
|
168
|
+
| `POST` | `/api/integrations/{service}/disconnect` | Remove connection |
|
|
169
|
+
| `GET` | `/api/agents` | Detect installed agents |
|
|
170
|
+
| `POST` | `/api/agents/import` | Import from agent |
|
|
171
|
+
| `GET` | `/api/agents/imported` | Import history |
|
|
172
|
+
|
|
173
|
+
Full API reference: [API Documentation](https://github.com/TracySmithConsulting/freehand/wiki/API)
|
|
174
|
+
|
|
175
|
+
## Security
|
|
176
|
+
|
|
177
|
+
- All OAuth tokens are **encrypted at rest** using Fernet (AES-128-CBC + HMAC-SHA256)
|
|
178
|
+
- Encryption key is auto-generated on first run at `vault/encryption.key` (mode 0o600)
|
|
179
|
+
- Permission tiers enforce approval workflows for write operations
|
|
180
|
+
- Nango removed — all OAuth is handled in-process
|
|
181
|
+
- No telemetry or data collection
|
|
182
|
+
|
|
183
|
+
## License
|
|
184
|
+
|
|
185
|
+
MIT — see [LICENSE](LICENSE)
|
|
186
|
+
|
|
187
|
+
## Contributing
|
|
188
|
+
|
|
189
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
190
|
+
|
|
191
|
+
## Changelog
|
|
192
|
+
|
|
193
|
+
See [CHANGELOG.md](CHANGELOG.md)
|
|
194
|
+
|
|
195
|
+
## Links
|
|
196
|
+
|
|
197
|
+
- **Source:** https://github.com/TracySmithConsulting/freehand
|
|
198
|
+
- **PyPI:** https://pypi.org/project/freehand-agent/
|
|
199
|
+
- **Issues:** https://github.com/TracySmithConsulting/freehand/issues
|
|
200
|
+
- **Setup Guide:** docs/OAUTH_SETUP.md
|