Skip to content

feat: use OpenRouter directly from commit script - #90

Merged
wajeht merged 15 commits into
mainfrom
agent/direct-provider-keys
Aug 2, 2026
Merged

feat: use OpenRouter directly from commit script#90
wajeht merged 15 commits into
mainfrom
agent/direct-provider-keys

Conversation

@wajeht

@wajeht wajeht commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • use one OpenRouter API key and OpenAI-compatible inference endpoint
  • ask first-time users only for a hidden OpenRouter API key
  • create the config directory and file with 700 and 600 permissions
  • support rerunning configuration with --setup
  • support API-key and model overrides through environment variables
  • send Git diffs directly from the Bash client to OpenRouter
  • keep authorization data out of process arguments and clean up private temporary files
  • fail public download commands on HTTP errors and bound inference requests with timeouts
  • remove the server-side AI proxy, IP allowlist, and server-owned provider keys
  • remove separate Gemini/OpenAI configuration and Make targets
  • add a comprehensive manual security and release QA checklist
  • ask for confirmation by default, with explicit --yes automation support
  • update the usage guide and integration coverage

Why

Users should need only one inference account and API key. commit.jaw.dev should only distribute the script instead of receiving credentials or repository diffs.

User impact

Run curl -fsSL https://commit.jaw.dev | bash. The first run asks only for an OpenRouter API key, then creates ~/.config/commit/config.json with private permissions. The script automatically uses google/gemini-2.5-flash-lite; advanced users can override it with --model or COMMIT_MODEL. Use --setup to replace the saved key.

Use --dry-run to preview without committing. Real commits ask for confirmation by default; use -y or --yes to explicitly accept without prompting. Commit always passes --no-verify to Git, so hooks are skipped without requiring a public flag.

Validation

  • bash -n assets/sh/commit.sh
  • go test ./...
  • go test -race ./...
  • go vet ./...
  • git diff --check

@wajeht wajeht changed the title feat: call AI providers directly from commit script feat: use OpenRouter directly from commit script Aug 2, 2026
@wajeht
wajeht marked this pull request as ready for review August 2, 2026 03:13
@wajeht
wajeht merged commit 21e80d1 into main Aug 2, 2026
2 checks passed
@wajeht
wajeht deleted the agent/direct-provider-keys branch August 2, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant