Skip to main content
skill CX Codex

c-ai — Claude Code skill: query LLMs from your terminal

Teaches the agent to run text through llm and aichat for summaries, grammar fixes and shell command generation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add daxaur/openpaw --skill c-ai -a claude-code
Open on GitHub

What c-ai does

This skill covers two command-line tools for talking to language models without leaving the terminal. With llm you pipe text in: hand it an article and ask for bullet points, send a git diff to get a commit message, clean up grammar from the clipboard. Pick a model with the -m flag and browse what is available via llm models.

aichat overlaps but adds command execution. Ask it in plain words for something like a search for large files and it returns a runnable shell line, thanks to the -e flag. It also ships an interactive REPL and RAG support.

Both keep API keys on your machine and need a one-time auth setup. Those keys are separate from Claude, and you pay per token. Cloud models under llm require a plugin first: llm install llm-claude-3, or llm install llm-ollama if you want to run models locally.

What it helps with

  • turn a long article into three bullet points
  • write a commit message from a git diff
  • fix grammar in clipboard text
  • hunt for bugs in a code file
  • generate a shell command from a plain description

Example prompts for the agent

  • Summarize article.txt in three bullets with llm
  • Write a commit message from git diff
  • Find every file over 100MB using aichat -e

How to install c-ai

1Skills CLI (Vercel)

npx skills add daxaur/openpaw --skill c-ai -a claude-code

2Manually: put the files in place

~/.claude/skills/c-ai/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/c-ai/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about c-ai

How do I install c-ai in Claude Code?

Run npx skills add daxaur/openpaw --skill c-ai -a claude-code. The skill file lands at ~/.claude/skills/c-ai/SKILL.md.

What does c-ai do?

It documents two CLI tools for LLM queries: llm for piping text through a model, and aichat for interactive chat plus shell command generation.

Do I need separate API keys?

Yes. These tools use their own keys, unrelated to Claude. Set them up once with the auth commands, then pay per token.

Source text

SKILL.md · MIT
---
name: c-ai
description: Query LLMs from the CLI — pipe text for summarization, chat interactively, use local or cloud models with llm or aichat.
tags: [ai, llm, summarize, chat]
---

# AI / LLM Tools

## llm (Simon Willison)

```bash
# Quick prompt
llm "What is the capital of France?"

# Pipe text for processing
cat article.txt | llm "Summarize this in 3 bullet points"
git diff | llm "Write a commit message for these changes"
pbpaste | llm "Fix the grammar in this text"

# Interactive chat
llm chat

# Use specific model
llm -m claude-3.5-sonnet "Explain quantum computing"
llm -m gpt-4o "Review this code"

# List available models
llm models

# Install model plugins
llm install llm-claude-3
llm install llm-ollama    # local models

# View prompt/response history
llm logs list
llm logs last
```

## aichat

```bash
# Quick prompt
aichat "Explain Docker in simple terms"

# Pipe input
cat code.py | aichat "Find bugs in this code"

# Interactive REPL
aichat

# Shell assistant (generates and runs commands)
aichat -e "find all files larger than 100MB"

# Specific model
aichat -m claude-3.5-sonnet "Hello"

# List models
aichat --list-models
```

## Guidelines

- Use `llm` for piping text through LLMs (summarize, translate, analyze)
- Use `aichat -e` for generating shell commands from natural language
- Both tools store API keys locally — set up once with auth commands
- `llm` has the richest plugin ecosystem (100+ model providers)
- `aichat` is faster (Rust) and has built-in RAG support
- These tools use separate API keys from Claude Code — user pays per token

© daxaur · MIT · daxaur/openpaw

Similar skills

All skills for AI and ML →

From the same set14

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor