{"id":45676846,"url":"https://github.com/antseed/antseed","last_synced_at":"2026-06-10T16:00:43.838Z","repository":{"id":340342234,"uuid":"1165524806","full_name":"AntSeed/antseed","owner":"AntSeed","description":"AntSeed P2P AI Network - An open market for AI inference. No gatekeepers.","archived":false,"fork":false,"pushed_at":"2026-06-10T09:50:59.000Z","size":148374,"stargazers_count":45,"open_issues_count":51,"forks_count":17,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T10:11:55.608Z","etag":null,"topics":["decentralized","dht","inference","llm","p2p","privacy"],"latest_commit_sha":null,"homepage":"https://antseed.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntSeed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security-review-buyer-proxy.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-24T09:01:29.000Z","updated_at":"2026-06-10T09:14:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AntSeed/antseed","commit_stats":null,"previous_names":["antseed/antseed"],"tags_count":91,"template":false,"template_full_name":null,"purl":"pkg:github/AntSeed/antseed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntSeed%2Fantseed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntSeed%2Fantseed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntSeed%2Fantseed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntSeed%2Fantseed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntSeed","download_url":"https://codeload.github.com/AntSeed/antseed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntSeed%2Fantseed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34159251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["decentralized","dht","inference","llm","p2p","privacy"],"created_at":"2026-02-24T13:00:42.288Z","updated_at":"2026-06-10T16:00:43.832Z","avatar_url":"https://github.com/AntSeed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AntSeed\n\nA peer-to-peer AI services network. Providers offer AI services, buyers discover providers via DHT and route requests through encrypted P2P connections.\n\n**Live pricing:** see [PRICING.md](PRICING.md) or `https://network.antseed.com/stats` (public JSON, no auth).\n\n## How It Works\n\n**Providers** run a provider plugin that connects to an upstream LLM API (Anthropic, OpenAI-compatible APIs, local Ollama, etc.) and announce capacity on the DHT network.\n\n**Buyers** run a router plugin that discovers providers, scores them on price/latency/reputation, and proxies requests through a local HTTP endpoint that drop-in replaces `ANTHROPIC_BASE_URL` or `OPENAI_BASE_URL`.\n\n## Terms of Use\n\nAntSeed is infrastructure for building differentiated AI services — not for raw resale of API keys or subscription access. Providers are expected to add value through domain-specific skills, agent workflows, Trusted Execution Environments (TEEs), fine-tuned models, or other product differentiation. Reselling personal subscription credentials (e.g., Claude Pro/Team plans) violates the upstream provider's terms of service and is not permitted. Always review your API provider's usage policies before offering capacity on the network. Subscription-based provider plugins (e.g., `provider-claude-code`, `provider-claude-oauth`) are provided for local testing and development only.\n\n## Quick Start\n\n```bash\n# Install dependencies\npnpm install\n\n# Build everything\npnpm run build\n\n# Create config once\nnode apps/cli/dist/cli/index.js seller setup\n\n# Start providing\nnode apps/cli/dist/cli/index.js seller start\n\n# Start buying\nnode apps/cli/dist/cli/index.js buyer start\n```\n\nOr install globally:\n\n```bash\nnpm install -g @antseed/cli\nantseed seller setup  # Create ~/.antseed/config.json\nantseed seller start  # Start providing\nantseed buyer start   # Start buying\n```\n\n`~/.antseed/config.json` is the main source of truth for providers, services, pricing, categories, ports, and `baseUrl`. Environment variables are primarily for secrets such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and `ANTSEED_IDENTITY_HEX`.\n\n## Repository Structure\n\n```\npackages/             Core libraries\n  node/               Protocol SDK -- P2P, discovery, metering, payments\n  provider-core/      Shared provider infrastructure (HTTP relay, auth, token management)\n  router-core/        Shared router infrastructure (peer scoring, metrics tracking)\n\nplugins/              Provider and router plugins\n  provider-anthropic/       Anthropic API key provider\n  provider-claude-code/     Claude Code keychain provider\n  provider-claude-oauth/    Claude OAuth provider\n  provider-openai/          OpenAI-compatible provider (OpenAI, Together, OpenRouter)\n  provider-local-llm/       Local LLM provider (Ollama, llama.cpp)\n  router-local/             Local router (Claude Code, Aider, Continue.dev)\n\napps/                 Applications\n  cli/                CLI tool and plugin manager\n  desktop/            Electron desktop app\n  website/            Marketing website\n\ne2e/                  End-to-end tests\ndocs/protocol/        Protocol specification\n```\n\n## Architecture\n\n```\n@antseed/node (core SDK)\n  ├── provider-core\n  │     └── provider-anthropic, provider-claude-code, provider-claude-oauth,\n  │         provider-openai, provider-local-llm\n  ├── router-core\n  │     └── router-local\n  ├── payments (peer: node)\n  │     └── cli (depends: node + payments)\n  │           └── desktop (Electron wrapper)\n  └── website (standalone)\n```\n\n## Metrics and Monitoring\n\nAntseed includes a native Prometheus-compatible exporter:\n\n```bash\nantseed metrics serve --role seller --host 0.0.0.0 --port 9108\nantseed metrics serve --role buyer --host 127.0.0.1 --port 9108\n```\n\nSee [Metrics](apps/website/docs/guides/metrics.md) for endpoint details, metric names, labels, and operational notes.\n\n## Development\n\n### Optional Nix dev shell\n\nThis repository includes a Nix flake for contributors who want a pinned local\ntoolchain. The flake provides Node.js, pnpm, Python, native build tools, Git, and\nLinux keychain dependencies used by the workspace. It does not replace the\nnormal pnpm workflow.\n\n```bash\nnix develop\npnpm install\npnpm run build\n```\n\nIf flakes are not enabled globally, run the shell with the required experimental\nfeatures for a single command:\n\n```bash\nnix --extra-experimental-features 'nix-command flakes' develop\n```\n\n```bash\npnpm install            # Install all dependencies\npnpm run build          # Build in dependency order\npnpm run test           # Run all tests\npnpm run typecheck      # Type-check all packages\npnpm run clean          # Remove all dist/ directories\npnpm run dev:website    # Start website dev server\npnpm run dev:desktop    # Build deps + start desktop in dev mode\n```\n\n## Building a Plugin\n\nProviders and routers are npm packages that export a plugin manifest:\n\n```bash\nantseed plugin create my-provider --type provider\n```\n\nSee [packages/node/README.md](packages/node/README.md) for the `Provider` and `Router` interfaces, and [plugins/provider-claude-oauth/README.md](plugins/provider-claude-oauth/README.md) for a full plugin walkthrough.\n\n## Tech Stack\n\n- **Runtime**: Node.js \u003e= 20, ES modules\n- **Language**: TypeScript 5.x, strict mode\n- **Package Manager**: pnpm workspaces\n- **Build**: tsc for libraries, Vite for web apps\n- **Test**: vitest\n- **Desktop**: Electron\n- **P2P**: BitTorrent DHT + WebRTC data channels\n- **Payments**: On-chain USDC deposits and sessions (Base/Arbitrum)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantseed%2Fantseed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantseed%2Fantseed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantseed%2Fantseed/lists"}