{"id":48834928,"url":"https://github.com/dsw7/claudifier","last_synced_at":"2026-04-14T22:31:07.417Z","repository":{"id":344773728,"uuid":"1183010132","full_name":"dsw7/claudifier","owner":"dsw7","description":"A C++ Claude CLI interface! I use this as my day-to-day toolkit for working with Anthropic products.","archived":false,"fork":false,"pushed_at":"2026-04-07T11:12:33.000Z","size":181,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-07T12:24:43.004Z","etag":null,"topics":["claude","claude-api","command-line-tool","cpp26","libcurl"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsw7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T07:19:04.000Z","updated_at":"2026-04-07T11:12:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dsw7/claudifier","commit_stats":null,"previous_names":["dsw7/claudifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dsw7/claudifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsw7%2Fclaudifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsw7%2Fclaudifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsw7%2Fclaudifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsw7%2Fclaudifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsw7","download_url":"https://codeload.github.com/dsw7/claudifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsw7%2Fclaudifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31818831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","claude-api","command-line-tool","cpp26","libcurl"],"created_at":"2026-04-14T22:31:06.277Z","updated_at":"2026-04-14T22:31:07.411Z","avatar_url":"https://github.com/dsw7.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claudifier\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dsw7/claudifier/master/LICENSE)\n\n## Overview\n**Claudifier** is a command line tool designed to interact with Claude's API.\nThe program supports a few operations out of the box, such as running stateless\nqueries, running a chatbot, and fetching current models. This program is\nwritten purely in C++ because python just feels clunky and slow. This program\nis tested on Ubuntu/Debian and macOS.\n\n**Please note that I built this purely because I wanted a program with a very\nsmall binary footprint. Anthropic already provides numerous CLI tools for\ninteracting with its API. Please use those - they are probably better than mine\n:)**\n\n## Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n  - [The `run` command](#the-run-command)\n  - [The `models` command](#the-models-command)\n  - [The `chat` command](#the-chat-command)\n- [Administration](#administration)\n  - [The `costs` command](#the-costs-command)\n- [Uninstall Claudifier](#uninstall-claudifier)\n- [License](#license)\n\n## Installation\n\n### Prerequisites\nThis program requires [CMake](https://cmake.org/), [{fmt}](https://fmt.dev/latest/) and\n[libcurl](https://curl.se/libcurl/). These can be installed as follows:\n\n#### Ubuntu/Debian\n```console\napt install cmake libfmt-dev libcurl4-openssl-dev\n```\n#### macOS\n```console\nbrew install cmake fmt\n# libcurl usually comes bundled with macOS\n```\n#### Other systems\nThis program should work on other Unix-like systems (i.e. other Linux\ndistributions) however I do not extensively test these.\n\n#### Set up environment variables\nYou will need a valid Anthropic API key. Set it as an environment variable:\n```bash\nexport ANTHROPIC_API_KEY=\"\u003cyour-api-key\u003e\"\n```\n\n### Step 1: Compile the binary\nCompile the binary by executing the `make` target:\n```console\nmake\n```\nThe binary will be installed into the directory specified by CMake's [install()\nfunction](https://cmake.org/cmake/help/latest/command/install.html#command:install).\nTo clean up generated\nartifacts:\n```console\nmake clean\n```\n\n### Step 2: Test setup\nStart the program:\n```console\nclaudifier --help\n```\nThe program will print a help message if it was set up correctly. You may get\nsome variation of:\n```\n-bash: claudifier: command not found\n```\nIf so, try running `claudifier` in a new terminal window.\n\n## Usage\n\n### The `run` command\nCreate a message from a prompt. **This command is stateless.** The program will\nread in a prompt interactively by default:\n```console\nclaudifier run\n```\nA prompt can instead be provided via command line argument:\n```console\nclaudifier run --prompt=\"Why are oranges orange?\"\n```\nA file named `Inputfile` can also be used to read long, multiline prompts. If\n`claudifier` finds the file in the current working directory, it will\nautomatically read the prompt from this file. The help messages provide\nadditional useful options:\n```console\nclaudifier run --help\n```\n\n### The `chat` command\nParticipate in an interactive, multi-turn conversation with an Anthropic LLM.\n**This command is stateful.** This command will use more tokens owing to the\nstateful nature of a multi-turn conversation. To use this command, run:\n```console\nclaudifier chat\n```\nOr just:\n```console\nclaudifier\n```\nThis command will also expose several subcommands. For example, one can type\n`i` at any time to inspect the existing conversational turns. The `c` command\ncan be used to clear context in order to switch topics and save on tokens.\n\n### The `models` command\nThe `models` command can be used to print all available Anthropic models. The\nmodel ID column can be used to specify models to be passed via the `--model` or\n`-m` options for the `chat` and `run` commands.\n\n## Administration\n\u003e [!NOTE]\n\u003e The commands in this section assume that a valid `ANTHROPIC_ADMIN_API_KEY` is\n\u003e set as an environment variable.\n\n### The `costs` command\nThe `costs` command can be used to determine overall monetary usage of\nAnthropic resources over a specified number of days. For example:\n```console\nclaudifier costs --days=5\n```\nWill return the usage per day over the past 5 days and the overall usage over\nthe 5 days.\n\n## Uninstall Claudifier\nVerify that the `claudifier` command in your `$PATH` is the Claudifier binary\nand not an alias for another application:\n```console\nclaudifier -h\n```\nIf confirmed, proceed to remove the binary with the following command:\n```console\nrm $(which claudifier)\n```\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE)\nfile for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsw7%2Fclaudifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsw7%2Fclaudifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsw7%2Fclaudifier/lists"}