# Open a GitHub repo in Codeharbor > Copy a public GitHub repository into a Codeharbor project file. Give a public GitHub address (or upload a ZIP/.tar.gz) and get a Codeharbor project with the repository’s text files — the same import Codeharbor’s “Open a GitHub repo” uses. Secret files, vendored code, lock files and binaries stay out; the project remembers the repository and commit. It is a one-way copy: nothing is ever written back to GitHub. Part of usefulweb.app (https://usefulweb.app/). Part of [Codeharbor](https://codeharbor.usefulweb.app/) (ownerApp: codeharbor). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://codeharborrepoimport.usefulweb.app/ (interactive tool at https://codeharborrepoimport.usefulweb.app/tool) - JSON API: POST https://codeharborrepoimport.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://codeharborrepoimport.usefulweb.app/api/v1/tool) - OpenAPI: https://codeharborrepoimport.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://codeharborrepoimport.usefulweb.app/mcp - tool `codeharbor_repo_import` ## Inputs - repoUrl (text): Public GitHub repository - An address like https://github.com/owner/repo, …/tree// or owner/repo. Private repositories cannot be opened. - archive (file): Or upload the repository (.zip, .tar.gz) - Used instead of the address when given, e.g. GitHub’s “Download ZIP”. Works without GitHub. - folder (text): Only this folder (optional) - e.g. packages/core — leave empty for the whole repository. - include (textarea): Include only (optional) - Glob patterns, one per line or comma-separated, e.g. src/**/*.ts, *.md. - exclude (textarea): Leave out (optional) - Glob patterns, e.g. tests/, *.snap, docs/**. - maxFileKb (number): Largest file to include (KB) - skipVendor (boolean): Skip vendored code and build output (node_modules, vendor, dist …) - skipLockfiles (boolean): Skip lock files (package-lock.json, poetry.lock …) ## Method - The repository is read like in the Repo Digest (public archive of the resolved commit, or the uploaded archive) and every file gets the same decision: secrets never, then your patterns, vendored folders, lock files, generated files, binaries and the size limit. - Files are taken by priority (README, manifests, source, docs, tests, rest; shallow paths first) until Codeharbor’s project limits are reached: 400 files, 1 MB per file, 8 MB in total. Files that do not fit are listed. - The project stores its source (repository, branch or tag, commit, import time). Codeharbor opens it as a new project in your browser; edits stay local and are never pushed to GitHub.