diyacode
v1.2.2
Published
<p align="center"> <pre align="center"> █▀▄ █ █▄█ ▄▀█ █▀▀ █▀█ █▀▄ █▀▀ █▄▀ █ ░█░ █▀█ █▄▄ █▄█ █▄▀ ██▄ </pre> </p> <p align="center">Your AI coding companion, built by <a href="https://github.com/CTAGRAM">ASTITWA</a>.</p> <p align="center"> <a
Readme
Installation
npm i -g diyacodeSupported Platforms
| Platform | Architecture | Package |
|----------|-------------|---------|
| Windows | x64 | diyacode-windows-x64 |
| macOS | Apple Silicon (M1/M2/M3/M4) | diyacode-darwin-arm64 |
| macOS | Intel | diyacode-darwin-x64 |
| Linux | x64 (glibc) | diyacode-linux-x64 |
| Linux | ARM64 (glibc) | diyacode-linux-arm64 |
| Linux | x64 (musl/Alpine) | diyacode-linux-x64-musl |
| Linux | ARM64 (musl/Alpine) | diyacode-linux-arm64-musl |
The correct binary is automatically installed for your platform.
Quick Start
# Navigate to your project directory
cd your-project
# Launch Diya Code
diyacodeOn first launch, you'll be prompted for your API key:
█▀▄ █ █▄█ ▄▀█ █▀▀ █▀█ █▀▄ █▀▀
█▄▀ █ ░█░ █▀█ █▄▄ █▄█ █▄▀ ██▄
Welcome to Diya Code! 🪔
◆ Enter your API key: ****
✓ API key saved! You can update it anytime with: diyacode auth loginYour key is saved persistently — no environment variables needed.
Features
- 🪔 AI-Powered Coding Agent — Built for the terminal, powered by advanced AI models
- 🔑 Persistent API Key — Enter once, saved permanently. No environment variables needed
- 🤖 Multi-Provider Support — Works with multiple AI providers out of the box
- 📝 Full Code Context — Understands your entire codebase for accurate suggestions
- 🛠️ Built-in Tools — File editing, bash commands, web search, and more
- 🔄 Session Management — Continue or fork previous sessions
- 🎨 Beautiful TUI — A polished terminal UI with themes and responsive design
- 🔌 MCP Support — Extend with Model Context Protocol servers
Usage
diyacode # Start interactive TUI
diyacode --model provider/model # Use a specific model
diyacode --continue # Continue the last session
diyacode -s <session_id> # Resume a specific session
diyacode auth login # Update your API key
diyacode auth list # View saved credentialsAgents
Diya Code includes two built-in agents you can switch between with the Tab key:
| Agent | Access | Purpose | |-------|--------|---------| | build | Full read/write | Development work — edit files, run commands | | plan | Read-only | Analysis and code exploration |
Configuration
Create an opencode.json in your project root to customize Diya Code:
{
"$schema": "https://astitwa.ai/config.json",
"provider": {
"a4f": {
"name": "A4F Provider",
"api": {
"name": "a4f"
},
"models": {
"your-model": {
"name": "Your Model",
"temperature": 0.7,
"max_tokens": 16000,
"attachment": true
}
}
}
}
}Keyboard Shortcuts
| Key | Action |
|-----|--------|
| Tab | Switch between agents |
| Ctrl+C | Cancel current action |
| Ctrl+D | Exit Diya Code |
| Enter | Send message |
| Shift+Enter | New line in input |
Requirements
- Node.js 18+ (for npm install)
- Terminal with Unicode support (for the TUI)
Built By
ASTITWA — github.com/CTAGRAM
