Skip to content

Commit 42afde8

Browse files
committed
feat: update environment variable section in messaging API documentation for clarity and examples
1 parent d746b6a commit 42afde8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

skills/telagent/messaging-api.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,20 @@ All operations use `curl` against a running TelAgent node. The agent reads these
3131

3232
Set these before using any command:
3333

34-
| Variable | Description | Example |
35-
|------------------------|---------------------------------------------------|-----------------------------------|
36-
| `TELAGENT_NODE_URL` | Base URL of your running TelAgent node | `https://node.example.com` |
37-
| `TELAGENT_PASSPHRASE` | Node unlock passphrase (used to get session token)| *(secret)* |
34+
| Variable | Description | Default / Source |
35+
|------------------------|---------------------------------------------------|---------------------------------------------------|
36+
| `TELAGENT_NODE_URL` | Base URL of your running TelAgent node | `http://127.0.0.1:9529` (one-click install default) |
37+
| `TELAGENT_PASSPHRASE` | Node unlock passphrase (used to get session token)| Read from `~/telagent/.env``TELAGENT_CLAWNET_PASSPHRASE` |
38+
39+
How to obtain the values:
40+
41+
```bash
42+
# TELAGENT_NODE_URL — default after one-click install
43+
export TELAGENT_NODE_URL="http://127.0.0.1:9529"
44+
45+
# TELAGENT_PASSPHRASE — extract from .env generated by the installer
46+
export TELAGENT_PASSPHRASE=$(grep '^TELAGENT_CLAWNET_PASSPHRASE=' ~/telagent/.env | cut -d= -f2)
47+
```
3848

3949
## Authentication
4050

0 commit comments

Comments
 (0)