| Crates.io | catbox-ng |
| lib.rs | catbox-ng |
| version | 0.9.2 |
| created_at | 2025-06-19 17:50:12.43048+00 |
| updated_at | 2025-06-19 17:50:12.43048+00 |
| description | Implementation of Catbox.moe's API |
| homepage | https://github.com/APT37/catbox |
| repository | https://github.com/APT37/catbox |
| max_upload_size | |
| id | 1718643 |
| size | 92,241 |
See FAQ for allowed filetypes and content.
Please consider supporting Catbox.moe by donating through Ko-fi or by purchasing items from the merch store (also supports direct donations) to help with the server costs.
Arch users may install one of our AUR packages.
Pre-built binaries for Windows and Linux are available for every release.
# 1. build dependencies
sudo apt-get install git rustup
# 2. Rust toolchain
rustup default stable
# 3a. latest release (via crates.io)
cargo install catbox-ng
# 3b. latest commit (via GitHub)
cargo install --git=https://github.com/APT37/catbox
Some commands require a authentication (via userhash). This can be set using both the CATBOX_USER_HASH environment variable or the --user argument.
The --user argument takes precedence over the environment variable.
Uploads without a userhash are anonymous.
All successful commands return the verbatim server response, usually a link to the given file or album, or an error.
catbox <cmd>
upload local files or URLs (authentication optional)delete filesalbum see belowlitter see examplesThe album subcommand has additional subcommands:
catbox album <album_cmd>
create a new album (authentication optional)delete an existing albumedit an existing albumadd files to an existing albumremove files from an existing albumUpload a file:
catbox upload cute_picture.png
Upload multiple files:
catbox upload *.jpg # Upload all jpg files
catbox upload image.png file.txt # Upload image.png and file.txt
Delete a file:
catbox delete abc123.jpg --user 1234567890123456789012345
catbox delete https://files.catbox.moe/123456.png # Or just 123456.png
Create an album:
catbox album create --title 'My album' --desc 'An excellent album' abc123.jpg def456.png
Upload a file to Litterbox for 3 days:
catbox litter --time 72h homework.zip
You can compile and install the command line tool with Cargo:
cargo install catbox-ng
To use the library in your project, add the repo to your Cargo.toml:
[dependencies]
catbox-ng = "*"