Skip to content

Add provider setup shortcuts on upstream base#7

Merged
luckeyfaraday merged 10 commits into
mainfrom
sync-provider-workflows-on-upstream
May 25, 2026
Merged

Add provider setup shortcuts on upstream base#7
luckeyfaraday merged 10 commits into
mainfrom
sync-provider-workflows-on-upstream

Conversation

@luckeyfaraday

Copy link
Copy Markdown
Owner

Summary

  • add one-command OpenRouter and MiniMax setup/run workflows on the current upstream base
  • write provider settings under ~/.codex-shim with committed-safe examples only
  • keep provider runs on temporary inline Codex overrides and provider-specific ports
  • preserve the symlink-safe bin/codex-shim launcher path

Verification

  • python3 -m pytest tests/test_settings_catalog.py tests/test_provider_workflows.py -q: 26 passed, 1 warning
  • python3 -m compileall -q codex_shim tests: passed
  • git diff --check: passed
  • python3 -m pytest -q: 36 passed, 6 failed because pytest-asyncio is not installed in this environment; installing it was not approved

OnlyTerp and others added 10 commits May 25, 2026 04:39
- Only advertise the synthetic gpt-5.5 entry in /health, /v1/models,
  list output, and the generated catalog when ~/.codex/auth.json holds
  a usable tokens.access_token, so the picker never shows an option
  that would 401 on first use.
- Resolve the gpt-5.5/openai-gpt-5-5 slug only when auth is present;
  otherwise raise SystemExit telling the user to run codex login.
- Drop the inline BrokenPipeError handler in list_models in favor of a
  single _entrypoint() boundary that handles SIGPIPE cleanly for any
  CLI path that pipes to head/grep/etc.
- README: promote 'pip install -e .' as the recommended install path,
  soften the maintainer benchmark claim into honest anecdata, and
  document the new auth-gated passthrough behavior + troubleshooting
  for the empty-catalog case.
- Tests: add coverage for chatgpt_passthrough_available(), auth-gated
  list/resolve/catalog behavior in both directions.
- .github/workflows/ci.yml: pytest + compileall on Python 3.11 and 3.12
  on push/PR to main.
- pyproject.toml: [project.optional-dependencies] dev so the dev loop
  is a single pip install -e .[dev].
- CONTRIBUTING.md: dev loop, what kinds of PRs are useful, what to
  include in bug reports, security disclosure policy.
- .github/ISSUE_TEMPLATE/{bug_report,feature_request}.md: structured
  templates that ask for the diagnostic info we actually need.
- CHANGELOG.md: capture the auth-gating, docs, and tooling work.
- Make ~/.codex-shim/models.json the canonical default settings path instead of tying the repo identity to any single upstream model store.
- Rename the generated Codex provider to codex_shim / Codex Shim.
- Rename settings types to ModelSettings/ShimModel and keep support for both generic models+snake_case and legacy customModels+camelCase config shapes.
- Rewrite README, metadata, issue templates, contributing docs, and changelog to describe the repo as an all-model BYOK Codex shim.
- Add tests for the generic settings schema while preserving alias compatibility.
Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ws-on-upstream

# Conflicts:
#	README.md
#	codex_shim/catalog.py
#	codex_shim/cli.py
#	codex_shim/server.py
#	codex_shim/settings.py
#	pyproject.toml
#	tests/test_server.py
#	tests/test_settings_catalog.py
@luckeyfaraday luckeyfaraday merged commit 93906a2 into main May 25, 2026
2 checks passed
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.

2 participants