From 66c4b8822316c703a67f7a38934a87c1d903ba0c Mon Sep 17 00:00:00 2001
From: TevinClaw <510129976@qq.com>
Date: Sat, 14 Mar 2026 12:38:28 +0800
Subject: [PATCH] refactor(tavily-search): 改为仅从环境变量读取API key
---
workspace/skills/tavily-search/SKILL.md | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/workspace/skills/tavily-search/SKILL.md b/workspace/skills/tavily-search/SKILL.md
index b4ac09f..596e5b3 100644
--- a/workspace/skills/tavily-search/SKILL.md
+++ b/workspace/skills/tavily-search/SKILL.md
@@ -10,13 +10,16 @@
## Prerequisites
1. Get a Tavily API key from https://tavily.com
-2. Configure the key using one of these methods:
- - **.env file (推荐)**: 在 `~/.openclaw/.env` 文件中配置:
- ```json
- {"env": {"TAVILY_API_KEY": "your_key_here"}}
- ```
- - **Environment variable**: `export TAVILY_API_KEY=your_key_here`
- - **Direct parameter**: Pass `api_key` when calling the function
+2. Configure the key via **environment variable**:
+ ```bash
+ export TAVILY_API_KEY=your_key_here
+ ```
+ Add to `~/.bashrc` or `~/.zshrc` for persistence:
+ ```bash
+ echo 'export TAVILY_API_KEY=your_key_here' >> ~/.bashrc
+ source ~/.bashrc
+ ```
+3. Or pass `api_key` as a direct parameter when calling the function
## Usage
--
Gitblit v1.9.1