{"id":23714141,"url":"https://github.com/hn12404988/gpt-files","last_synced_at":"2026-03-09T20:06:20.890Z","repository":{"id":270205491,"uuid":"909632612","full_name":"hn12404988/gpt-files","owner":"hn12404988","description":"Cross-Platform CLI tool for managing resources for OpenAI assistant","archived":false,"fork":false,"pushed_at":"2025-01-22T07:01:38.000Z","size":68,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T02:28:52.022Z","etag":null,"topics":["assistant","assistant-api","chatgpt","cli","file-search","openai","openai-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hn12404988.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-12-29T10:17:55.000Z","updated_at":"2025-04-29T19:31:06.000Z","dependencies_parsed_at":"2024-12-29T11:23:13.618Z","dependency_job_id":"cd8bf91c-b5eb-4a6d-bab1-204f367934b1","html_url":"https://github.com/hn12404988/gpt-files","commit_stats":null,"previous_names":["hn12404988/gpt-files"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hn12404988/gpt-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hn12404988%2Fgpt-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hn12404988%2Fgpt-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hn12404988%2Fgpt-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hn12404988%2Fgpt-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hn12404988","download_url":"https://codeload.github.com/hn12404988/gpt-files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hn12404988%2Fgpt-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30310052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["assistant","assistant-api","chatgpt","cli","file-search","openai","openai-api"],"created_at":"2024-12-30T20:16:55.603Z","updated_at":"2026-03-09T20:06:20.872Z","avatar_url":"https://github.com/hn12404988.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gpt-files\n\n## Description\n\n`gpt-files` is a CLI tool for managing resources (`file`, `vector store`,\n`code`...etc) for OpenAI assistant with ease. It can be easily installed on\nLinux, macOS, and Windows.\n\n## Installation\n\n#### For Linux and macOS\n\n```sh\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/hn12404988/gpt-files/main/install.sh)\"\n```\n\n#### For Windows (PowerShell)\n\n```powershell\npowershell -NoProfile -ExecutionPolicy Bypass -Command \"Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/hn12404988/gpt-files/main/install.ps1 | Invoke-Expression\"\n```\n\n## Features\n\n```sh\n# Create a new assistant\ngpt-files create-assistant -n my-assistant\n\n# Upload a file to the assistant\ngpt-files upload ./deno.json\n\n# Upload all files of a directory to the assistant\ngpt-files upload-dir ./reports\n\n# List all files in the assistant\ngpt-files list\n```\n\n## All Commands\n\nTo see all the available commands and options, please run `--help`.\n\n```sh\n$ gpt-files --help\n```\n\n```sh\nOptions:\n\n  -h, --help     - Show this help.                                            \n  -V, --version  - Show the version number for this program.                  \n  --verbose      - Print verbose output                       (Default: false)\n\nCommands:\n\n  # Assistant\n  create-assistant                   - Create a new assistant.                                  \n  update-assistant  \u003cassistantId\u003e    - Update an assistant                                      \n  del-assistant     \u003cassistantId\u003e    - Delete an assistant                                      \n  assistant         \u003cassistantId\u003e    - Show the details of an assistant                         \n  assistants                         - List all assistants\n  \n  # Vector Store                           \n  create-store      \u003cname\u003e           - Create a new vector store                                \n  del-store         \u003cvectorStoreId\u003e  - Delete a vector store                                    \n  store             \u003cvectorStoreId\u003e  - Show the details of a vector store                       \n  stores                             - List all vector stores\n  \n  # File\n  upload            \u003cfilePath\u003e       - Upload a file to an assistant\n  upload-dir        \u003cdirPath\u003e        - Upload all files of a directory to an assistant                            \n  delete            \u003cfileId\u003e         - Detach a file from an assistant and delete it permanently\n  detach            \u003cfileId\u003e         - Detach a file from an assistant\n  file              \u003cfileId\u003e         - Show the details of a file                          \n  list                               - List all files attached to an assistant\n  files                              - List all files under your openai account                 \n\nEnvironment variables:\n\n  OPENAI_API_KEY       \u003cvalue\u003e  - OpenAI api key                 (required)\n  OPENAI_ASSISTANT_ID  \u003cvalue\u003e  - OpenAI assistant id. Required for file operation commands\n```\n\nFor each command, you can run `--help` to see the available options like this.\n\n```sh\n$ gpt-files upload --help\n```\n\n```sh\nUsage:   gpt-files upload \u003cfilePath\u003e\n\nDescription:\n\n  Upload a file to an assistant\n\nOptions:\n\n  -h, --help                        - Show this help.                                                                                                        \n  --verbose                         - Print verbose output                             (Default: false)                         \n  -n, --file-name    \u003cname\u003e         - New filename to replace the original filename                                                                 \n  -o, --overwrite                   - Overwrite if existed                             (Default: false)                         \n  -d, --destination  \u003cdestination\u003e  - Upload to vector store or code interpreter.      (Default: \"file\", Values: \"file\", \"code\")\n  -a, --assistant-id \u003cassistantId\u003e  - If this option is provided, this is used as the assistant id instead of the OPENAI_ASSISTANT_ID environment variable\n\nEnvironment variables:\n\n  OPENAI_API_KEY       \u003cvalue\u003e  - OpenAI api key                                             (required)\n  OPENAI_ASSISTANT_ID  \u003cvalue\u003e  - OpenAI assistant id. Required for file operation commands            \n\nExamples:\n\n  Upload to code interpreter: gpt-files upload --destination=code ./main.ts                           \n                              gpt-files upload -d code ./main.ts\n                                                                    \n  New file name:              gpt-files upload --file-name=report.txt ./report_2024-01.txt            \n                              gpt-files upload -n report.txt ./report_2024-01.txt\n                                                   \n  Overwrite existed:          gpt-files upload --overwrite --file-name=report.txt ./report_2024-02.txt\n                              gpt-files upload -o -n report.txt ./report_2024-02.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhn12404988%2Fgpt-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhn12404988%2Fgpt-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhn12404988%2Fgpt-files/lists"}