npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aemi-cli/aemi

v0.1.1

Published

LLM CLI routing tool with Telegram and Discord bot integration

Downloads

652

Readme

AEMI

한국어

Agent Mirror - AI agent routing tool with Telegram and Discord bot integration.

A CLI tool that relays AI agent responses through Telegram/Discord bots.

Origin

This project is a fork of kstost/cokacdir. It is based on the LLM CLI routing portion of the original project, with the TUI file manager removed to focus on bot relay functionality.

Features

  • AI Agent Routing: Query AI agents and receive responses via --prompt
  • Telegram Bot: Route AI agent through Telegram with --routing telegram
  • Discord Bot: Route AI agent through Discord with --routing discord
  • Multi-Bot: Run multiple Telegram bot tokens simultaneously
  • Access Control: --chat-id (Telegram) / --channel-id (Discord) required for routing

Usage

# Query Claude Code directly
aemi --prompt "explain this code"

# Start Telegram bot server with Claude (--chat-id required)
aemi --agent claude --routing telegram --token <TOKEN> --chat-id <CHAT_ID>

# Start Telegram bot server with Gemini
aemi --agent gemini --routing telegram --token <TOKEN> --chat-id <CHAT_ID>

# Start Discord bot server (--channel-id required)
aemi --agent claude --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>

# Start Telegram bot server with Codex
aemi --agent codex --routing telegram --token <TOKEN> --chat-id <CHAT_ID>

# Start Discord bot server with Gemini
aemi --agent gemini --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>

# Start Discord bot server with Codex
aemi --agent codex --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>

# Start Telegram bot server with OpenCode
aemi --agent opencode --routing telegram --token <TOKEN> --chat-id <CHAT_ID>

# Start Discord bot server with OpenCode
aemi --agent opencode --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>


# Start Telegram bot server with oh-my-pi (omp)
aemi --agent oh-my-pi --routing telegram --token <TOKEN> --chat-id <CHAT_ID>

# Start Discord bot server with oh-my-pi (omp)
aemi --agent oh-my-pi --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>
# Run multiple Telegram bots simultaneously
aemi --agent claude --routing telegram --token <TOKEN1> <TOKEN2> <TOKEN3> --chat-id <CHAT_ID>

Installation

Prerequisites

  • Install the CLI tool for the agent you want to use (see Agent Types)

Install via npm

npm install -g @aemi-cli/aemi

Build from source

# Clone
git clone https://github.com/KyongSik-Yoon/aemi.git
cd aemi

# Build
cargo build --release

# Binary location
./target/release/aemi

See build_manual.md for detailed build instructions including cross-compilation.

Agent Types

| Agent | CLI Flag | Status | Priority | |-------|----------|--------|----------| | Claude Code | --agent claude | Available | - | | Gemini CLI | --agent gemini | Available | - | | Codex CLI | --agent codex | Available | - | | OpenCode | --agent opencode | Available | - | | oh-my-pi (omp) | --agent oh-my-pi | Available | - |

Prerequisites per Agent

Each agent requires its own CLI tool to be installed:

  • Claude: npm install -g @anthropic-ai/claude-code
  • Gemini: npm install -g @google/gemini-cli
  • Codex: npm install -g @openai/codex
  • OpenCode: npm install -g opencode (or see opencode.ai for other methods)
  • oh-my-pi: install oh-my-pi and ensure omp is in your PATH (omp --version)

Slash Commands

See docs/slash_commands.md for the full list of bot commands.

Debug Logging

Set AEMI_DEBUG=1 to write debug logs under ~/.aemi/debug/ (for example: oh-my-pi.log, discord.log, telegram.log).

Supported Platforms

  • macOS (Apple Silicon & Intel)
  • Linux (x86_64 & ARM64)

License

MIT License

Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

IN NO EVENT SHALL THE AUTHORS, COPYRIGHT HOLDERS, OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

USE AT YOUR OWN RISK.