Ani.Code.mp4
🌸 Ani Code is your coding Senpai. - Not just another copilot – Ani Code is the open-source Claude Code alternative for Better API Testing, your anime-coded AI sidekick that powers up your workflow with QA testing, security scans, API exploration, and persistent agent memory – all wrapped in a vibrant, fun interface.
Ani Code works with your favorite AI backends. Plug in your keys and go:
- OpenRouter - (recommended: access OpenAI, Anthropic, Mistral, Gemini, etc.)
- OpenAI - (GPT-4, GPT-4o, o1-preview…)
- Anthropic - (Claude 3.5 Sonnet, Haiku)
- Google Gemini
- Mistral
- 🧪 Enhanced QA Mode – Auto-generate & run tests (unit, e2e, Playwright, CI/CD ready)
- 📖 API Skill Tree – Read & test APIs directly with Apidog MCP Serve
- 🧠 Agent.md Memory – Smarter context persistence across your whole codebase
- 🔒 Code Guardian – Automatic bug & security scans (local + PR)
- 🔥 Always YOLO Mode – Iterate fearlessly, scan, refactor, and ship without friction
- 🎌 Anime Vibes – The UI feels less “enterprise” and more like coding with your favorite anime sidekick
Think of Ani Code as your dev Senpai:
- Guides you when you’re stuck 🧭
- Powers you up with new abilities ⚡
- Keeps you safe from bugs & vulnerabilities 🛡️
- And always brings anime energy to your workflow 🌸
npm install -g ani-code
ani --helpgit clone https://github.com/hervekom37/Ani_Code.git
cd Ani_CodeWindows:
.\install.ps1Linux/macOS:
chmod +x install.sh
./install.shnpm install
npm run build
npm link# 1. Initialize your project
ani init
# 2. Add E2E tests
ani add-playwright
# 3. Scan for vulnerabilities
ani bug-scan
# 4. Generate CI/CD tests
ani generate-tests --ci --e2e --playwright| Command | Description | Usage |
|---|---|---|
ani |
Interactive interface | ani |
ani add-playwright |
Add Playwright E2E | ani add-playwright |
ani bug-scan |
Scan for bugs & security | ani bug-scan --pr |
ani run-tests |
Run all tests | ani run-tests |
ani generate-tests |
Generate tests + CI/CD | ani generate-tests --ci --e2e |
ani migrate-ts |
Migrate to TypeScript | ani migrate-ts |
ani bg-agent |
Automation agent | ani bg-agent --watch |
aniAvailable slash commands:
/help- Full help/login- AI provider login/model- Choose AI model/clear- Clear history/context- Manage project context
# Unit tests
ani run-tests unit
# E2E tests
ani run-tests e2e
# Playwright tests
ani run-tests playwright# Local scan
ani bug-scan
# PR scan (CI/CD)
ani bug-scan --pr# Tests + CI/CD complet
ani generate-tests --ci --e2e --playwright
# Migration TypeScript
ani migrate-ts# 30-second complete testing setup
ani init
ani generate-tests --ci --e2e --playwright
ani bug-scan --local
ani run-tests- CLI:
ani generate-tests --ci --e2e --playwright - TUI:
ani→/generate-tests→ select options interactively
| Command Type | CLI Command | TUI Slash Command |
|---|---|---|
| Full Setup | ani generate-tests --ci --e2e --playwright |
/generate-tests |
| Security Scan | ani bug-scan --local |
/bug-scan --local |
| Run Tests | ani run-tests |
/run-tests |
| Background Agent | ani bg-agent --watch |
/bg-agent --watch |
| Playwright Setup | ani add-playwright |
/add-playwright |
mkdir my-app && cd my-app
ani init
ani generate-tests --ci --e2e --playwright # Complete testing suite
ani bug-scan --local # Security check
ani run-tests # Execute all tests
ani bg-agent --watch & # Continuous monitoringani bug-scan --local # Identify issues
ani generate-tests src/ # Add missing tests
ani run-tests # Validate current state
ani migrate-ts # TypeScript migration if neededani run-tests --watch # Auto-run tests on changes
ani bug-scan --pr # Pre-commit security check
ani bg-agent --watch # Background test generation- Unit Tests: Jest with coverage reporting
- E2E Tests: Playwright with visual testing
- Security: Automated vulnerability scanning
- CI/CD: GitHub Actions workflow generation
- Performance: Load testing capabilities
- Monitoring: Real-time test generation
For detailed testing scenarios and examples, see: TEST_SCENARIO.md
- Always run security scans:
ani bug-scan --localbefore commits - Use watch mode:
ani bg-agent --watchfor continuous testing - Generate tests early: Use
ani generate-testsat project start - Check coverage: Tests generate 95%+ coverage reports automatically
- CI/CD ready: All tests integrate with GitHub Actions
- Test pyramid: Unit → Integration → E2E tests
- Security first: Regular vulnerability scanning
- Continuous testing: Background agent for real-time updates
- Type safety: TypeScript migration with full test coverage
- Documentation: Auto-generated test reports in
context/
The system automatically generates:
- ✅ GitHub Actions workflow
- 📊 Coverage reports
- 🔍 Security audits
- 🧪 Multi-node testing
- 📦 Artifact uploads
# OpenRouter (recommended)
ani login
# → Select OpenRouter
# Or manual configuration
export OPENROUTER_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export OPENAI_API_KEY="your-key"// src/tools/tool-schemas.ts
export const MY_TOOL_SCHEMA = {
type: 'function',
function: {
name: 'my_tool',
description: 'Clear description',
parameters: { /* ... */ }
}
};ani-code/
├── src/
│ ├── agents/ # Specialized AI agents
│ ├── commands/ # CLI commands
│ ├── core/ # Application core
│ ├── knowledge-graph/ # Context system
│ ├── tools/ # AI tools
│ ├── ui/ # TUI interface
│ └── utils/ # Utilities
├── context/ # Project documentation
├── docs/ # Technical documentation
└── package.json # Configuration
mkdir my-project && cd my-project
ani init
ani add-playwright
ani generate-tests --ci --e2e --playwright
ani migrate-ts# Quick audit
ani bug-scan
# Add missing tests
ani generate-tests src/
# TypeScript migration
ani migrate-tsani bg-agent --watch # Auto monitoring
ani run-tests # Quick tests
ani bug-scan --local # Pre-commit checkCreate ~/.ani-code-config.json :
{
"defaultModel": "anthropic/claude-3.5-sonnet",
"temperature": 0.7,
"maxTokens": 4000,
"debug": false
}# API Keys
export OPENROUTER_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-..."
export OPENAI_API_KEY="sk-..."
# Configuration
export ANI_DEBUG=true
export ANI_MODEL="anthropic/claude-3.5-sonnet"- 📈 Test Coverage : 95% with detailed report
- 🔒 Security : Daily automatic scans
- ⚡ Performance : Automatic bundle optimization
- 📊 Monitoring : Detailed logs in
context/AGENT_MEMORY.md
- Fork the project
- Create a feature branch
- Test with
npm test - Submit a Pull Request
- Issues : GitHub Issues
- Discussions : GitHub Discussions
- Discord : Ani Code Community
MIT License - see LICENSE for details.
⭐ If this project helps you, don't hesitate to give it a star!