New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

dimcode

Package Overview
Dependencies
Maintainers
3
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dimcode

AI coding agent CLI and terminal coding assistant with an interactive TUI

npmnpm
Version
0.0.16-beta.3
Version published
Weekly downloads
2.5K
19.49%
Maintainers
3
Weekly downloads
 
Created
Source
Brand Logo

Dimcode CLI

An AI coding agent CLI and terminal coding assistant with a beautiful interactive TUI

npm version

Dimcode is an AI coding CLI for terminal-first developers who want fast code generation, refactoring, repo search, code review, and agent-style workflows directly in the shell.

If you are searching for a CLI coding tool similar to Claude Code, Codex, OpenCode, or Cursor's terminal workflow, Dimcode is built for the same terminal-native use case while adding a polished multi-session TUI, tool approvals, MCP support, and flexible provider setup.

Dimcode helps you move fast with:

  • 🎨 Beautiful TUI - Modern terminal interface built with Vue 3
UI
  • 💬 Multi-session Management - Organize multiple AI conversations
  • 🔧 Built-in Tools - File ops, web search, code analysis, and more
  • Streaming Responses - See AI outputs in real time
  • 🎯 Tool Approvals - Granular control over tool execution
  • 🌈 Themes - Flexible, customizable color schemes

📈 Download Stats

MetricLive Badge
Weekly downloadsnpm downloads (week)
Total downloadsnpm downloads (total)

Why Developers Search for Dimcode

Dimcode is designed for developers looking for:

  • An AI coding CLI for daily programming tasks
  • A terminal coding assistant for large codebases
  • A Claude Code alternative with a richer TUI
  • A Codex CLI alternative for multi-session work
  • An OpenCode alternative with built-in tool approvals
  • A Cursor alternative for terminal users who prefer staying in the shell
  • A CLI AI agent for refactors, debugging, repo Q&A, and web research

⚡ Get Started in 30 Seconds

  • Install the CLI
npm install -g dimcode
  • Run it
dim
  • Ask for help
Create a React component for a todo list

📦 Installation

Install Dimcode as your AI coding assistant CLI:

npm install -g dimcode

Or using other package managers:

# Using pnpm
pnpm add -g dimcode

# Using yarn
yarn global add dimcode

# Using bun
bun add -g dimcode

Using npx (No Installation)

Run directly without installation:

npx dimcode

🎮 Usage

Command Palette

Press Ctrl+P to open the command palette, which provides quick access to:

  • Sessions - View and switch between conversations
  • New Session - Start a fresh conversation
  • Settings - Configure API keys and model settings
  • Tool Approvals - Manage tool execution permissions
  • Theme - Customize the UI appearance (in Chat view)

Slash Commands

Type slash commands directly in the input field:

CommandDescription
/settingsOpen settings dialog (custom providers)
/configAlternative for /settings
/approvalsManage tool approvals (auto/all)
/approvalAlternative for /approvals
/connectConnect a provider
/modelsSelect a model
/sessionsList all sessions
/newCreate a new session
/redoRedo last interaction
/rename <title>Rename current session
/timelineJump to a user message
/tlAlternative for /timeline
/reviewReview code changes
/debugOpen debug dialog (node mode only)
/compactCompact session context
/initInitialize/improve AGENTS.md
/exitExit the application
/longrunningToggle long-running mode
/tool-settingsConfigure tool-specific settings
/toolsettingsAlternative for /tool-settings
/mcpOpen MCP settings
/mcphubAlternative for /mcp
/mcp-settingsAlternative for /mcp
/codexloginLogin with Codex OAuth
/codex-loginAlternative for /codexlogin
/languageSwitch UI language
/langAlternative for /language
/localeAlternative for /language
/themeToggle light/dark theme

Keyboard Shortcuts

ShortcutAction
Ctrl+POpen command palette
F1Open help dialog
Ctrl+OExpand/collapse all tool calls & thinking
Ctrl+KOpen settings (custom providers)
Ctrl+CClear input (if non-empty); otherwise exit
Ctrl+WClear input (alternative)
EnterSend message
Shift+EnterNew line in input
Ctrl+JNew line in input (alternative)
TabSwitch mode (Agent/Plan/Debug)
EscCancel/close dialog or interrupt response

Input Tips

  • Drag to select text, then release to auto-copy (when enabled)
  • In the input area, use Shift+Option for rectangular selection
  • Triple-click in the input area to select all
  • Tab moves focus to the next input field; Shift+Tab moves to the previous
  • The CLI is mouse-friendly for selection, scrolling, and clicking buttons/controls

Dimcode vs Other AI Coding Tools

If you are comparing Dimcode with Claude Code, Codex, OpenCode, or Cursor, the main difference is that Dimcode focuses on a terminal-first agent experience with:

  • Interactive TUI workflows instead of a minimal chat-only shell
  • Multi-session conversation management for parallel coding tasks
  • Tool approvals and built-in tools for safer repo operations
  • Flexible provider and model configuration for custom setups
  • ACP / MCP connectivity for editor and tool integrations

That makes it a good fit for developers who want an AI code assistant in the terminal, but need more control and visibility than a basic CLI chat loop.

⚙️ Configuration

Environment Variables

Create a .env file in your working directory or set environment variables:

# OpenAI Configuration
OPENAI_API_KEY=your_api_key_here
OPENAI_BASE_URL=https://api.openai.com/v1  # Optional
DIMCODE_MODEL=deepseek-v3.1  # Default model

# Serper API for web search (optional)
SERPER_API_KEY=your_serper_key_here

# Custom home directory (optional)
DIMCODE_HOME=~/.dimcode

# Debug mode (optional)
DIMCODE_DEBUG=1

Note: For backward compatibility, GOATCHAIN_ prefix is also supported (e.g., GOATCHAIN_MODEL, GOATCHAIN_DEBUG).

First-time Setup

On first launch, Dimcode will guide you through:

  • API Key Setup - Enter your OpenAI API key
  • Model Selection - Choose your preferred AI model
  • Tool Approvals - Configure which tools can run automatically

Settings are stored in ~/.dimcode/dimcode/ directory by default (can be customized via DIMCODE_HOME environment variable).

ACP Server

DimCode can run as an ACP server for editors and tools such as Zed or OpenClaw acpx.

Preferred commands:

dim acp
node /absolute/path/to/GoatChain/scripts/acpx-agent.mjs

For GUI launchers, prefer absolute paths instead of relying on shell PATH. Do not configure bun run acp-server in acpx or editor settings; it only works when the cwd is the GoatChain repo root. If you use Codex OAuth, run dim auth codex once first. If you use a custom provider, make sure ~/.dimcode/config.json already contains a valid provider setup.

🔧 Built-in Tools

Dimcode comes with powerful built-in tools:

File Operations

  • Read - Read file contents
  • Write - Create or overwrite files
  • Edit - Make precise edits to existing files

Code Analysis

  • Grep - Search content using patterns
  • Glob - Find files by pattern

Web & Research

  • WebSearch - Search the web using Serper API
  • WebFetch - Fetch web page content

Task Management

  • TodoWrite - Create and manage TODO lists

System

  • Bash - Execute shell commands (requires approval)
  • AskUser - Request input from user

Skills

Skills are specialized capabilities that can be activated to extend DimCode's functionality. Built-in skills include:

  • skill-installer - Install Codex skills from curated list or GitHub repos
  • skill-creator - Guide for creating effective skills

📚 Examples

Basic Coding Assistant

dim
# Then type: "Create a React component for a todo list"

Multi-file Refactoring

dim
# Then type: "Rename all instances of 'oldName' to 'newName' across the project"

Web Research

dim
# Then type: "Search for the latest best practices in TypeScript 5.3"

Compare CLI Coding Agents

dim
# Then type: "Compare Dimcode with Claude Code, Codex, OpenCode, and Cursor for terminal-first development"

🔐 Security & Privacy

  • Tool Approvals: By default, sensitive operations (file writes, shell commands) require user approval
  • Local Storage: All session data is stored locally in ~/.dimcode/dimcode/ (customizable via DIMCODE_HOME)

FAQs

Package last updated on 09 Mar 2026

Related posts