#claude #stdout #stdin #write #message #config-file #api-key #api-response

bin+lib daberu

Claude client tool that reads your message from stdin and writes the response to stdout

13 releases (6 breaking)

Uses new Rust 2024

new 0.7.0 Jan 5, 2026
0.6.0 Sep 29, 2025
0.5.0 Jul 10, 2025
0.2.2 Mar 15, 2025
0.1.0 Jun 2, 2023

#1545 in Command line utilities

MIT/Apache

50KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments Shell 213 SLoC // 0.0% comments

daberu

daberu Actions Status License

A simple command-line tool for conversing with Claude.

"daberu" is a Japanese translation of "chatting".

$ daberu -h
Claude client tool that reads your message from stdin and writes the response to stdout

Usage: daberu [OPTIONS]

Options:
      --version                    Print version
  -h, --help                       Print help ('--help' for full help, '-h' for summary)
  -x, --ext                        Enable extended subcommands
      --config-file <PATH>         Path to configuration JSONC file [env: DABERU_CONFIG_FILE]
      --anthropic-api-key <STRING> Anthropic API key [env: ANTHROPIC_API_KEY]
  -l, --log <PATH>                 Path to log file for saving the last conversation [env: DABERU_LOG_PATH]
  -c, --continue                   Continue conversation from the existing log file instead of truncating it
  -a, --enable-agents-md           Automatically load AGENTS.md or CLAUDE.md as a resource [env: DABERU_ENABLE_AGENTS_MD]
  -m, --model <MODEL_NAME>         Model name [env: DABERU_MODEL] [default: claude-sonnet-4-5]
  -s, --system <STRING>            System message
  -r, --resource <PATH>            File path to be used as a resource for the conversion
  -e, --shell-command <COMMAND>    Shell command to be used as a resource for the conversion

Installation

$ cargo install daberu

$ export ANTHROPIC_API_KEY="YOUR API KEY"

Usage Examle

// Conversation without history.
$ echo hi | daberu
Hello! How can I assist you today?

// Conversation with history.
$ echo "Translate to Japanese: 'hi'" | daberu --log chat.log
こんにちは

$ echo "Next, translate to Spanish" | daberu --log chat.log
hola

$ jq . chat.log
[
  {
    "role": "user",
    "content": "Translate to Japanese: 'hi'\n"
  },
  {
    "role": "assistant",
    "content": "こんにちは"
  },
  {
    "role": "user",
    "content": "Next, translate to Spanish\n"
  },
  {
    "role": "assistant",
    "content": "hola"
  }
]

References

Dependencies

~230KB