{"id":45943201,"url":"https://github.com/bradfitz/tsp","last_synced_at":"2026-03-05T15:00:56.324Z","repository":{"id":340872518,"uuid":"1167955632","full_name":"bradfitz/tsp","owner":"bradfitz","description":"tailscale protocol tool","archived":false,"fork":false,"pushed_at":"2026-02-27T16:22:55.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-03T14:04:58.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradfitz.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-02-26T21:36:00.000Z","updated_at":"2026-03-02T13:58:13.000Z","dependencies_parsed_at":"2026-03-01T11:00:36.932Z","dependency_job_id":null,"html_url":"https://github.com/bradfitz/tsp","commit_stats":null,"previous_names":["bradfitz/tsp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bradfitz/tsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Ftsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Ftsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Ftsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Ftsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradfitz","download_url":"https://codeload.github.com/bradfitz/tsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Ftsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30082990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"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":[],"created_at":"2026-02-28T10:53:40.098Z","updated_at":"2026-03-04T14:00:39.763Z","avatar_url":"https://github.com/bradfitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsp\n\n`tsp` is a low-level Tailscale protocol tool for performing composable\nbuilding-block operations: generating keys, discovering server public keys,\nand registering nodes with a coordination server.\n\n## Library\n\nThe `tsp` Go package provides a client for\nspeaking the Tailscale protocol to a coordination server.\nSee https://pkg.go.dev/github.com/bradfitz/tsp for that.\n\n## CLI\n\nThe CLI wraps the library to let you do each operation.\n\n### Install\n\n```\ngo install github.com/bradfitz/tsp/cmd/tsp@latest\n```\n\n### Commands\n\n#### new-machine-key\n\nGenerate a new machine key.\n\n```\ntsp new-machine-key [-o file]\n```\n\n#### new-node-key\n\nGenerate a new node key.\n\n```\ntsp new-node-key [-o file]\n```\n\n#### discover-server-key\n\nDiscover and print the coordination server's public key.\n\n```\ntsp [-s url] discover-server-key [-o file]\n```\n\n#### new-node\n\nGenerate a new node JSON file bundling machine key, node key, server URL,\nand server public key. If `-n` or `-m` are omitted, new keys are generated.\nThe server key is discovered automatically unless `--control-key` is given.\n\n```\ntsp [-s url] [--control-key file] new-node [-n node-key-file] [-m machine-key-file] [-o output]\n```\n\nThe resulting JSON file looks like:\n\n```json\n{\n  \"node_key\": \"node-privkey:...\",\n  \"machine_key\": \"machine-privkey:...\",\n  \"server_url\": \"https://controlplane.tailscale.com\",\n  \"server_key\": \"mkey:...\"\n}\n```\n\n#### register\n\nRegister a node with a coordination server using a node JSON file.\n\n```\ntsp [-s url] [--control-key file] register -n \u003cnode-file\u003e [flags]\n```\n\nFlags:\n\n```\n-n \u003cfile\u003e          Node JSON file (required)\n-o \u003cfile\u003e          Output file (default: stdout)\n--hostname \u003cname\u003e  Hostname to register\n--ephemeral        Register as ephemeral node\n--auth-key \u003ckey\u003e   Pre-authorized auth key\n--tags \u003ctags\u003e      Comma-separated ACL tags\n```\n\n#### map\n\nSend a map request to the coordination server.\n\n```\ntsp [-s url] [--control-key file] map -n \u003cnode-file\u003e [-stream] [-peers=false] [-o file]\n```\n\nFlags:\n\n```\n-n \u003cfile\u003e          Node JSON file (required)\n-o \u003cfile\u003e          Output file (default: stdout)\n-stream            Stream map responses\n-peers             Include peers in response (default: true)\n```\n\n### Example workflow\n\nUsing a node file (recommended):\n\n```sh\n# Generate a node file (discovers server key automatically)\ntsp new-node -o node.json\n\n# Register\ntsp register -n node.json --auth-key tskey-auth-...\n\n# Get inital map response \u0026 exit\ntsp map -n node.json\n\n# Get map response + stream of updates, forever\ntsp map -n node.json -stream\n```\n\nUsing pre-existing key files:\n\n```sh\n# Generate keys separately\ntsp new-machine-key -o machine.key\ntsp new-node-key -o node.key\n\n# Bundle into a node file\ntsp new-node -m machine.key -n node.key -o node.json\n\n# Register and map using the node file\ntsp register -n node.json --auth-key tskey-auth-...\ntsp map -n node.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Ftsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradfitz%2Ftsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Ftsp/lists"}