Skip to main content

refactorai-cli

Public CLI package for Refactor.

  • PyPI package name: refactorai-cli
  • Installed command: refactor
  • Python module package: refactorai_cli

By default, the CLI targets https://api.refactorai.codes. Use REFACTOR_PLATFORM_URL only when you need to override the control-plane URL (for self-hosted or local development environments).

Local development install

From repository root:

pip install -e refactorai-core -e refactorai-cli

Build

From repository root:

python -m pip install --upgrade build twine
python -m build "./refactorai-cli"

Artifacts are created in:

  • refactorai-cli/dist/*.whl
  • refactorai-cli/dist/*.tar.gz

Publish

python -m twine check ./refactorai-cli/dist/*
python -m twine upload ./refactorai-cli/dist/*

Install test (local)

python -m pip install ./refactorai-cli/dist/refactorai_cli-0.3.4-py3-none-any.whl
refactor --version

Cloud BYOK setup (bring your own provider key)

Run cloud inference with your own provider credentials (no local runtime required). Preferred path is env-key in project config (provider_key: ${ENV_VAR}). Platform-stored credentials (credential_ref) are optional fallback.

# 1. Authenticate (developer key with the run:byok entitlement).
refactor login

# 2A. Preferred: set BYOK directly from project env in refactor.config:
#
# mode: cloud_byok
# provider: openai
# model_id: gpt-4.1-mini
# provider_key: ${OPENAI_API_KEY}
#
# 2B. Optional fallback: register a platform-stored credential from env.
export OPENAI_API_KEY=sk-...
refactor cloud credentials set --provider openai --from-env OPENAI_API_KEY --label "my key"
# -> prints a credential_ref, e.g. cred_01J...

# 3. If you use platform-stored fallback, set credential_ref in config:
#    credential_ref: cred_01J...

# 4. Verify readiness, then run.
refactor doctor
refactor review .
refactor code . --apply

Manage credentials:

refactor cloud credentials list
refactor cloud credentials remove --credential-ref cred_01J...

Metadata

Release files for refactorai-cli 0.7.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refactorai-cli 0.7.9
File Size Uploaded Provenance Actions
refactorai_cli-0.7.9.tar.gz 167.7 kB Without provenance Details for refactorai_cli-0.7.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for refactorai-cli 0.7.9
File Interpreter ABI Platform Actions
refactorai_cli-0.7.9-py3-none-any.whl Python 3 none any Details for refactorai_cli-0.7.9-py3-none-any.whl

Total release size: 356.1 kB

Release files / refactorai_cli-0.7.9.tar.gz

Download URL refactorai_cli-0.7.9.tar.gz
Size 167.7 kB
Tags Source
SHA-256 checksum
How to use checksums
48486525c4cc5f2aedd30eaaf9cff35730152d6a14e40f0ae012fbc5b9c9a757
BLAKE2b-256 checksum
How to use checksums
a2d425e80efb5babcc88335f816d9e25cdba95d185e25abfdd96001dd16790ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / refactorai_cli-0.7.9-py3-none-any.whl

Download URL refactorai_cli-0.7.9-py3-none-any.whl
Size 188.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c77c7a8beec6c14d7c4516e15d64f1b49d17bdde2bcea3df7023913290b4e3c
BLAKE2b-256 checksum
How to use checksums
6813e2078e58e9ca670a13e0f2fef7112f8ec1c59e77d162462b1a03f2ad5255
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for refactorai-cli 0.7.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page