{"id":30619789,"url":"https://github.com/lostdusty/cobalt-cli","last_synced_at":"2025-08-30T13:03:09.028Z","repository":{"id":219191303,"uuid":"748257609","full_name":"lostdusty/cobalt-cli","owner":"lostdusty","description":"Unofficial cobalt command line client made in go.","archived":false,"fork":false,"pushed_at":"2024-11-25T19:30:31.000Z","size":82,"stargazers_count":55,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T00:06:27.392Z","etag":null,"topics":["cli","cli-app","cobalt","cobalt-tools","download-videos","downloader","go","golang","instagram","reddit","soundcloud","terminal-based","twitter","youtube","youtube-downloader"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lostdusty.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}},"created_at":"2024-01-25T15:51:01.000Z","updated_at":"2025-08-07T03:11:57.000Z","dependencies_parsed_at":"2024-02-23T16:26:16.225Z","dependency_job_id":"2b594d15-2771-4e0d-83c8-1a498eeee1f2","html_url":"https://github.com/lostdusty/cobalt-cli","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":0.631578947368421,"last_synced_commit":"8df52f5086ac60229640d6aa04586e4b2ca9f5fa"},"previous_names":["princessmortix/cobalt","lostdusty/cobalt"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/lostdusty/cobalt-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostdusty%2Fcobalt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostdusty%2Fcobalt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostdusty%2Fcobalt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostdusty%2Fcobalt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostdusty","download_url":"https://codeload.github.com/lostdusty/cobalt-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostdusty%2Fcobalt-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272852302,"owners_count":25004055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","cli-app","cobalt","cobalt-tools","download-videos","downloader","go","golang","instagram","reddit","soundcloud","terminal-based","twitter","youtube","youtube-downloader"],"created_at":"2025-08-30T13:01:33.284Z","updated_at":"2025-08-30T13:03:09.002Z","avatar_url":"https://github.com/lostdusty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./winres/icon.png\" width=\"64\" height=\"64\"\u003e\n\u003ch1\u003ecobalt-cli \u003c/h1\u003e\n\u003c!-- Badges --\u003e\n\n[![GitHub Release](https://img.shields.io/github/v/release/princessmortix/cobalt?display_name=tag\u0026style=for-the-badge\u0026color=success)](#downloading)\n[![Static Badge](https://img.shields.io/badge/cobalt_discord-join-blue?style=for-the-badge\u0026logo=discord)](https://discord.gg/pQPt8HBUPu)\n[![Static Badge](https://img.shields.io/badge/supported-services-0077b6?style=for-the-badge\u0026logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNS4xIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0%2BPHBhdGggZD0iTTU3OS44IDI2Ny43YzU2LjUtNTYuNSA1Ni41LTE0OCAwLTIwNC41Yy01MC01MC0xMjguOC01Ni41LTE4Ni4zLTE1LjRsLTEuNiAxLjFjLTE0LjQgMTAuMy0xNy43IDMwLjMtNy40IDQ0LjZzMzAuMyAxNy43IDQ0LjYgNy40bDEuNi0xLjFjMzIuMS0yMi45IDc2LTE5LjMgMTAzLjggOC42YzMxLjUgMzEuNSAzMS41IDgyLjUgMCAxMTRMNDIyLjMgMzM0LjhjLTMxLjUgMzEuNS04Mi41IDMxLjUtMTE0IDBjLTI3LjktMjcuOS0zMS41LTcxLjgtOC42LTEwMy44bDEuMS0xLjZjMTAuMy0xNC40IDYuOS0zNC40LTcuNC00NC42cy0zNC40LTYuOS00NC42IDcuNGwtMS4xIDEuNkMyMDYuNSAyNTEuMiAyMTMgMzMwIDI2MyAzODBjNTYuNSA1Ni41IDE0OCA1Ni41IDIwNC41IDBMNTc5LjggMjY3Ljd6TTYwLjIgMjQ0LjNjLTU2LjUgNTYuNS01Ni41IDE0OCAwIDIwNC41YzUwIDUwIDEyOC44IDU2LjUgMTg2LjMgMTUuNGwxLjYtMS4xYzE0LjQtMTAuMyAxNy43LTMwLjMgNy40LTQ0LjZzLTMwLjMtMTcuNy00NC42LTcuNGwtMS42IDEuMWMtMzIuMSAyMi45LTc2IDE5LjMtMTAzLjgtOC42Qzc0IDM3MiA3NCAzMjEgMTA1LjUgMjg5LjVMMjE3LjcgMTc3LjJjMzEuNS0zMS41IDgyLjUtMzEuNSAxMTQgMGMyNy45IDI3LjkgMzEuNSA3MS44IDguNiAxMDMuOWwtMS4xIDEuNmMtMTAuMyAxNC40LTYuOSAzNC40IDcuNCA0NC42czM0LjQgNi45IDQ0LjYtNy40bDEuMS0xLjZDNDMzLjUgMjYwLjggNDI3IDE4MiAzNzcgMTMyYy01Ni41LTU2LjUtMTQ4LTU2LjUtMjA0LjUgMEw2MC4yIDI0NC4zeiIvPjwvc3ZnPg%3D%3D\u0026logoColor=0077b6)](https://github.com/wukko/cobalt?tab=readme-ov-file#supported-services)\n![GitHub License](https://img.shields.io/github/license/princessmortix/cobalt?style=for-the-badge\u0026logo=unlicense)\n\u003c/div\u003e\n\nUnofficial [cobalt](https://cobalt.tools) command line client made in go. cobalt-cli uses [gobalt library](https://github.com/lostdusty/gobalt) for communication between your machine \u003c-\u003e cobalt servers.\n\n- [Features](#features)\n- [Download](#downloading)\n- [Roadmap](#roadmap)\n- [Usage](#usage)\n- [Compiling](#compiling)\n\n## Features\n- Get directly link from the service cdn (if possible);\n- More than 15 services supported;\n- Option to check status of cobalt servers;\n- Use custom cobalt instances (see https://instances.hyper.lol);\n- Download the file directly to your computer.\n\n## Download\n| **Platform/OS** | **Download link**  |\n|-----------------|--------------------|\n| Windows         | [**x64**](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-windows-amd64.zip) / [x86](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-windows-386.zip) / [arm](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-windows-arm.zip)    |\n| Linux           | [**x64**](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-linux-amd64.tar.gz) / [x86](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-linux-386.tar.gz) / [arm64](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-linux-arm64.tar.gz)    |\n| Mac           | [Intel](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-darwin-amd64.tar.gz) / [**M1, M2, M3**](https://github.com/princessmortix/cobalt/releases/latest/download/cobalt-darwin-arm64.tar.gz) |\n\nYou can also check the [releases page](https://github.com/princessmortix/cobalt/releases/latest) to download the latest version according to your platform.\n\nAlternatively, if you have Go installed, you can use `go install github.com/lostdusty/cobalt@latest` to install to your machine.\n\n## Roadmap\nPlanned features for cobalt-cli:\n\n- [x] Option to save file to the current/custom folder, likely `-s` flag;\n  - [x] Display progress bar to track download progress (when supported by cobalt).\n  - [ ] Hability to use custom downloader program (wget, curl, got, etc);\n- [ ] Translations.\n- [X] Benchmarking.\n \n\n## Usage\ncobalt-cli is similar to yt-dlp, just use `cobalt [url]`. If you use `cobalt help`, it will just show the help message.\n\nBy default cobalt-cli saves the request link to the current directory, use the `-s` flag to change to another directory, like: `cobalt https://www.youtube.com/watch?v=n1a7o44WxNo -s ..\\Videos`\n\n### Help\n```\nusage: cobalt-cli [-h|--help] [url \"\u003cvalue\u003e\"] [-c|--video-codec (av1|vp9|h264)]\n                  [-q|--video-quality (144|240|360|480|720|1080|1440|2160)]\n                  [-f|--audio-format (opus|ogg|wav|mp3|best)]\n                  [-Q|--audio-quality (64|128|192|256|320)]\n                  [-p|--filename-pattern (basic|pretty|nerdy|classic)]\n                  [-m|--mode (auto|audio|mute)] [-x|--proxy]\n                  [-d|--disable-metadata] [-t|--tiktok-h265]\n                  [-T|--tiktok-full-audio] [-g|--gif] [-s|--save \"\u003cvalue\u003e\"]\n                  [-a|--api \"\u003cvalue\u003e\"] [-i|--instances] [-v|--verbose]\n                  [-k|--key \"\u003cvalue\u003e\"] [-b|--benchmark] [-P|--print]\n\n                  save what you want, directly from the terminal, no unwanted\n                  distractions involved. powered by cobalt's api\n\nArguments:\n\n  -h  --help               Print help information\n      \u003curl\u003e                url to save\n  -c  --video-codec        Video codec to be used. Applies only to youtube\n                           downloads. AV1: 8K/HDR, lower support | VP9: 4K/HDR,\n                           best quality | H264: 1080p, works everywhere.\n                           Default: h264\n  -q  --video-quality      Quality of the video, applies only to youtube\n                           downloads. Default: 1080\n  -f  --audio-format       Audio format/codec to be used. \"best\" doesn't\n                           re-encodes audio. Default: best\n  -Q  --audio-quality      Audio quality in kbps. Default: 320\n  -p  --filename-pattern   File name pattern. Classic:\n                           youtube_yPYZpwSpKmA_1920x1080_h264.mp4 | audio:\n                           youtube_yPYZpwSpKmA_audio.mp3 // Basic: Video Title\n                           (1080p, h264).mp4 | audio: Audio Title - Audio\n                           Author.mp3 // Pretty: Video Title (1080p, h264,\n                           youtube).mp4 | audio: Audio Title - Audio Author\n                           (soundcloud).mp3 // Nerdy: Video Title (1080p, h264,\n                           youtube, yPYZpwSpKmA).mp4 | audio: Audio Title -\n                           Audio Author (soundcloud, 1242868615).mp3. Default:\n                           pretty\n  -m  --mode               Mode to download the video. Auto: video with audio |\n                           Audio: only audio | Mute: video without audio.\n                           Default: auto\n  -x  --proxy              Tunnel the download through cobalt's servers,\n                           bypassing potential restrictions and protecting your\n                           identity and privacy. Default: false\n  -d  --disable-metadata   Disable metadata in the downloaded file. Default:\n                           false\n  -t  --tiktok-h265        Use H265 codec for TikTok downloads. Default: false\n  -T  --tiktok-full-audio  Download TikTok videos with the original sound used\n                           in a TikTok video. Default: false\n  -g  --gif                Convert Twitter videos to GIFs. Default: false\n  -s  --save               What folder to save the file to. If not provided,\n                           will use the current directory. Default:\n                           D:\\Docs\\GitHub\\cobalt\n  -a  --api                Which API to use. Default is hyperdefined cobalt's\n                           API. If you are hosting a custom API, or want to use\n                           a different server, you can use it here. Default:\n                           https://cobalt-backend.canine.tools\n  -i  --instances          Show community instances and exit. Default: false\n  -v  --verbose            Enable verbose logging. Default: false\n  -k  --key                API key by the instance owner. You may need to\n                           provide one to use download. Can be set with\n                           COBALT_API_KEY environment variable. If not\n                           provided, will load from keychain. Default:\n  -b  --benchmark          Run a benchmark to test the download speed and\n                           integrity. Default: false\n  -P  --print              Print the download link only, do not download the\n                           file. Default: false\n```\n\n### Instances\nThe command changed, now to view other instances, use `cobalt -i`\n\n\n## Compiling\nMake sure you have the lastest go compiler. [Download it here](https://go.dev/dl).\n\nEasy as:\n1. Clone this repository.\n2. On the root of this repository, run `go mod tidy`. This will download this project dependencies.\n3. To run the application, use `go run .`. To compile, run `go build`.\n\nTo add additional Windows metadata, you'll need:\n- [go-winres](https://github.com/tc-hib/go-winres), follow the install instructions there\n\nThen run `go-winres make` on the root of this repository, it will create two .syso files.\n\nAfter that, building with `go build` will automatically embed these files on the Windows executable.\n\n## Other projects\nCheck out too:\n- [tobalt, cobalt in typescript](https://github.com/tskau/tobalt)\n- [tcobalt, cobalt cli in rust](https://github.com/khyerdev/tcobalt)\n- [pybalt, cobalt cli \u0026 api in python](https://github.com/nichind/pybalt)\n- [gobalt(2), another lib for cobalt in go](https://github.com/andresperezl/gobalt)\n\n\n# About \u0026 Thanks\n- [cobalt](https://github.com/imputnet/cobalt) made by [wukko](https://github.com/wukko) \u0026\u0026 [jj](https://github.com/dumbmoron), cool people;\n- [argparse](https://github.com/akamensky/argparse), for handling args;\n- Icon made by [me](https://lostdusty.com.br);\n- You, for using my application!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostdusty%2Fcobalt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostdusty%2Fcobalt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostdusty%2Fcobalt-cli/lists"}