← 返回
数据分析 Key 中文

Edithai

Intelligent log analysis CLI tool powered by DeepSeek API with 30+ built-in tools for file operations, system diagnostics, and log pattern recognition.
由DeepSeek API驱动的智能日志分析CLI工具,配备30+内置工具,支持文件操作、系统诊断和日志模式识别。
xin9min9
数据分析 clawhub v1.0.1 2 版本 99854.2 Key: 需要
★ 1
Stars
📥 665
下载
💾 31
安装
2
版本
#latest

概述

EdithAI - Intelligent Log Analysis CLI

EdithAI is a Go-based CLI tool that combines natural language processing with powerful built-in tools for comprehensive log analysis. It leverages the DeepSeek API to provide intelligent insights into log data, making complex log analysis accessible through simple commands.

Features

Core Capabilities

  • Intelligent Log Analysis: Use natural language queries to analyze logs
  • 30+ Built-in Tools: File operations, system diagnostics, data processing, and pattern recognition
  • Multi-format Support: Handles various log formats and timestamps
  • Real-time Processing: Streamlined analysis with efficient token usage
  • Cost Estimation: Track API costs with DeepSeek pricing integration

Key Tools

  • File Operations: Read, write, and search files
  • Terminal Commands: Safe execution of diagnostic commands
  • Log Analysis: Pattern detection, timeline analysis, and error tracking
  • Data Processing: CSV, JSON, and text manipulation
  • System Diagnostics: Network, process, and performance monitoring

Usage Examples

Basic Log Analysis

# Analyze error logs in current directory
edithai -query "analyze error logs in current directory"

# Search for specific patterns
edithai -query "find all database connection errors"

# Generate performance report
edithai -query "create performance summary from application logs"

Interactive Mode

# Start interactive session
edithai -i

# Multi-turn conversation about logs
> show me memory usage trends
> find memory leaks in the last 24 hours
> export analysis to report.html

Installation Requirements

Install EdithAI CLI

First, install the EdithAI CLI tool:

npm install -g @xin9min9/edithai-cli

Environment Variables

  • DEEPSEEK_API_KEY: Your DeepSeek API key for AI-powered analysis

System Requirements

  • Node.js >= 14.0.0 (required for npm)
  • Minimum 512MB RAM
  • Network connectivity to DeepSeek API

Configuration

Default Settings

  • Tool output truncation: 2000 characters
  • API timeout: 30 seconds
  • History file: ~/.edithai/history.json
  • Log directory: Current working directory

Advanced Configuration

Create a configuration file at ~/.edithai/config.json:

{
  "api": {
    "timeout": 30,
    "max_tokens": 4000
  },
  "security": {
    "whitelist_commands": ["ls", "cat", "grep"],
    "blacklist_commands": ["rm", "dd", "mkfs"],
    "tool_payload_max_chars": 2000
  }
}

Security Features

  • Command Whitelisting/Blacklisting: Restrict terminal command execution
  • File Extension Protection: Prevent execution of dangerous file types
  • Path Traversal Protection: Safeguard against directory traversal attacks
  • Command Injection Detection: Block shell operators and dangerous patterns

File Structure

~/.edithai/
├── config.json       # User configuration
└── history.json      # Conversation history

Supported Log Formats

  • Plain text logs
  • JSON logs
  • CSV data files
  • Log files with timestamps
  • Application logs (web servers, databases, etc.)
  • System logs (Linux/Windows)

Tips for Best Results

  1. Be Specific: Use clear, detailed queries for better analysis
  2. Context Matters: Include relevant time ranges and log locations
  3. Iterative Analysis: Use interactive mode for multi-step analysis
  4. Cost Awareness: Monitor token usage and costs in DeepSeek provider

License

MIT-0 License - See LICENSE file for details.

Support

For issues and feature requests, visit the EdithAI GitHub Repository.

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-30 23:18 安全 安全
  • v1.0.0
    2026-03-11 17:52

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,518
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,145
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,986