A Claude Code skill that enables web search using AI models with built-in search capability.
- Web search powered by DeepSeek AI models
- Multiple search models for different use cases
- Vision-capable models for image + text queries
- Reasoning transparency (see the model's thinking process)
- Free public API key available
cd ~/.claude/skills/
git clone https://github.com/Cznorth/ai-search-skill.git ai-search- Create the skill directory:
mkdir -p ~/.claude/skills/ai-search/scripts- Download the files:
SKILL.md→~/.claude/skills/ai-search/SKILL.mdscripts/search.py→~/.claude/skills/ai-search/scripts/search.py
Set the environment variables:
export AI_SEARCH_API_KEY="your-api-key"
export AI_SEARCH_BASE_URL="https://ai.ch66.top"Or add them to your ~/.claude/settings.json:
{
"env": {
"AI_SEARCH_API_KEY": "your-api-key",
"AI_SEARCH_BASE_URL": "https://ai.ch66.top"
}
}A free public API key is available for testing:
sk-5AgmPI8AvsgsR5nYktz8Bs5D7xhrmFiPpQU6feh0XH0QPjCa
Note: The public key may have limited availability for search models. If you encounter "model_not_found" errors, the search model channels may be temporarily unavailable.
Once installed, the skill is automatically available. You can invoke it using:
/ai-searchpython3 ~/.claude/skills/ai-search/scripts/search.py '{"query":"your search query"}'| Model | Description | Best For |
|---|---|---|
deepseek-expert-chat-search |
Expert chat with search (recommended) | General search, professional topics |
deepseek-expert-reasoner-search |
Expert reasoner with search | Deep analysis, research |
deepseek-chat-search |
Chat with search | Quick answers |
deepseek-reasoner-search |
Reasoner with search | Complex reasoning queries |
deepseek-vision-chat-search |
Vision chat with search | Image + text queries |
deepseek-vision-reasoner-search |
Vision reasoner with search | Image analysis + search |
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
| query | str | yes | - | Search query |
| model | str | no | deepseek-expert-chat-search | Model to use |
| verbose | bool | no | true | Show reasoning and stats |
# Basic search
python3 scripts/search.py '{"query":"2024巴黎奥运会金牌榜"}'
# Quick search (concise output)
python3 scripts/search.py '{"query":"今天新闻","verbose":false}'
# Use specific model
python3 scripts/search.py '{"query":"AI最新进展","model":"deepseek-chat-search"}'With verbose: true (default):
=== 推理过程 ===
[Model's reasoning process]
=== 搜索结果 ===
[Final answer]
=== 使用统计 ===
提示词: X tokens
完成: Y tokens
总计: Z tokens
With verbose: false:
=== 搜索结果 ===
[Final answer only]
- Python 3.x
requestslibrary (pip install requests)
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.