Skip to content

OpenSIN-AI/OpenSIN-onboarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OpenSIN Onboarding

Autonomous first-run setup for OpenSIN — zero manual intervention.

When a new user runs OpenSIN for the first time, this onboarding system automatically:

  1. Installs & configures the A2A-SIN-Passwordmanager with Google Cloud Secrets backend
  2. Installs OpenSIN Bridge Chrome Extension via CLI sideload
  3. Registers API accounts on free-tier platforms (NVIDIA NIM, Groq, Hugging Face, etc.)
  4. Provisions gcloud service account for secrets management
  5. Seeds initial credentials into the Passwordmanager vault

Architecture

User runs: opensin init
            │
            ▼
┌─────────────────────────────┐
│  Phase 1: System Bootstrap  │
│  ─ gcloud CLI install       │
│  ─ Node.js/npm verify       │
│  ─ Chrome verify             │
│  ─ opencode CLI verify       │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│  Phase 2: GCP Project Setup │
│  ─ gcloud auth login (CDP)  │
│  ─ Create GCP project       │
│  ─ Enable Secret Manager API│
│  ─ Create service account   │
│  ─ Generate & store SA key  │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│  Phase 3: Passwordmanager   │
│  ─ Build from source        │
│  ─ Configure gcloud backend │
│  ─ Verify health check      │
│  ─ Symlink CLI (spm)        │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│  Phase 4: Chrome Extension  │
│  ─ Build extension           │
│  ─ Sideload via chrome CLI  │
│  ─ Verify extension active  │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│  Phase 5: Platform Accounts │
│  ─ Groq (free vision API)   │
│  ─ NVIDIA NIM (free tier)   │
│  ─ Hugging Face (spaces)    │
│  ─ Store all keys in PM     │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│  Phase 6: Verification      │
│  ─ PM health check          │
│  ─ gcloud secrets list      │
│  ─ Extension ping           │
│  ─ API key validation       │
│  ─ Print onboarding report  │
└─────────────────────────────┘

Quick Start

git clone https://github.com/OpenSIN-AI/OpenSIN-onboarding.git
cd OpenSIN-onboarding
./scripts/onboard.sh

Or via OpenSIN CLI:

opensin init

Directory Structure

OpenSIN-onboarding/
├── scripts/
│   ├── onboard.sh                  # Main entry point
│   ├── phase1_system_bootstrap.sh  # System prerequisites
│   ├── phase2_gcp_setup.sh         # GCP project + service account
│   ├── phase3_passwordmanager.sh   # PM build + configure
│   ├── phase4_chrome_extension.sh  # Extension sideload
│   ├── phase5_platform_accounts.py # Autonomous account registration
│   └── phase6_verification.sh      # End-to-end health checks
├── docs/
│   ├── 01-prerequisites.md         # What users need before starting
│   ├── 02-passwordmanager-setup.md # Deep dive: PM + GCS architecture
│   ├── 03-chrome-extension.md      # Extension installation details
│   ├── 04-platform-accounts.md     # Platform registration reference
│   ├── 05-troubleshooting.md       # Common issues + fixes
│   └── 06-security-model.md        # How secrets are protected
├── config/
│   └── templates/
│       ├── catalog.template.json   # PM catalog seed template
│       └── env.template            # Environment variable template
├── .well-known/
│   └── agent-card.json             # A2A discovery card
└── README.md

Supported Platforms (Auto-Registration)

Platform Free Tier What OpenSIN Uses It For
Google Cloud $300 credit + always-free Secret Manager (6 active versions) Passwordmanager backend (Google Cloud Secrets)
Groq 14,400 req/day (vision models) OpenSIN Bridge vision analysis
NVIDIA NIM 1,000 free API calls/month Specialized AI models (Qwen, Cosmos)
Hugging Face Unlimited free CPU Spaces A2A agent hosting
GitHub Unlimited public repos Code hosting, Issues, A2A coordination

How Autonomous Registration Works

OpenSIN uses the Two-Layer Browser Stack (nodriver + CDP) to:

  1. Navigate to platform signup page
  2. Fill registration forms with user-provided email
  3. Handle email verification via user's mail client
  4. Extract API keys from dashboard
  5. Store keys in Passwordmanager (Google Cloud Secrets)

The user only needs to provide:

  • Email address (for account registration)
  • Google account (for GCP + Chrome profile)

Everything else is fully autonomous.

Security Model

  • All secrets stored in Google Cloud Secret Manager (encrypted at rest with Google-managed keys)
  • Service account key stored locally at ~/.config/opencode/auth/google/ with 600 permissions
  • No secrets ever committed to git (enforced by .gitignore + pre-commit hooks)
  • Secret names follow pattern: spm-{name} in GCP
  • Passwordmanager catalog (metadata only, no values) at ~/.config/sin/sin-passwordmanager/catalog.json

Related Repositories

Repository Purpose
OpenSIN-backend A2A-SIN-Passwordmanager source code
OpenSIN-documentation Full platform docs (docs.opensin.ai)
OpenSIN-overview Organization SSOT registry
OpenSIN Core platform
OpenSIN-Code CLI tool

License

Apache 2.0 — see LICENSE

About

Autonomous first-run onboarding for OpenSIN — sets up Passwordmanager, Google Cloud Secrets, Chrome Extension, API keys, and platform accounts with zero manual intervention

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors