Metadata-Version: 2.4
Name: spidercode
Version: 1.0.0
Summary: SpiderCode Agent - Autonomous coding assistant powered by DeepSeek-Coder
Author: SpiderCode Team
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: fastapi>=0.104.0
Requires-Dist: uvicorn>=0.24.0
Requires-Dist: websockets>=12.0

# SpiderCode Agent

Autonomous coding assistant powered by DeepSeek-Coder-6.7B.

## Quick Start

```bash
pip install -r requirements.txt
spidercode chat
```

## Commands

| Command | Description |
|---------|-------------|
| `spidercode chat` | Interactive chat session |
| `spidercode run "task"` | Execute a single task |
| `spidercode init` | Create default config |
| `spidercode serve` | Start API server |
| `spidercode scan [path]` | Scan project structure |

## Configuration

Edit `~/.spidercode/config.yaml` or create one with `spidercode init`.

## API

Start the API server: `spidercode serve`

- `POST /chat` - Send a chat message
- `POST /tool` - Execute a tool
- `POST /plan` - Create a plan
- `POST /execute` - Execute a task
- `POST /cancel` - Cancel current task
- `GET /history` - Get chat history
- `GET /projects` - Get project info
- `GET /health` - Health check


pip i -r requirements.txt

python -m spidercode chat

python -m spidercode scan .

python -m spidercode init 

python -m spidercode serve
# Sửa bằng tay hoặc dùng lệnh:
python -c
"import yaml
path = r'C:\Users\Trong An\.spidercode\config.yaml'
with open(path) as f: cfg = yaml.safe_load(f)
cfg['model']['api_key'] = 'sk-53d0ce648866468c895c918f3ea463aa'
with open(path, 'w') as f: yaml.dump(cfg, f)
print('Done')"
