Refineo AI Text Humanizer CLI - Transform AI-generated text into natural human writing
Project description
Refineo AI Tools
CLI and MCP tools for Refineo - Transform AI-generated text into natural human writing.
Quick Start
Node.js / TypeScript
# Using bunx (recommended)
bunx refineo-cli login
# Using npx
npx refineo-cli login
# Global install
npm i -g refineo-cli && refineo login
Python
# Using uvx (recommended)
uvx refineo-cli login
# Using pipx
pipx run refineo-cli login
# Global install
pip install refineo-cli && refineo login
Commands
refineo login # Authenticate with your account
refineo logout # Clear stored credentials
refineo stats # Show usage statistics
refineo humanize "text" # Humanize AI-generated text
Humanize Options
refineo humanize "text" --model enhanced # Use enhanced model (default)
refineo humanize "text" --model standard # Use standard model
refineo humanize --file input.txt # Read from file
refineo humanize --file input.txt --output output.txt # Write to file
refineo humanize "text" --verbose # Show debug output
echo "text" | refineo humanize # Read from stdin
Requirements
- Pro or Ultra subscription - CLI/MCP access is a Pro+ feature
- Node.js 18+ (for Node CLI)
- Python 3.10+ (for Python CLI)
Authentication
The CLI uses device code flow for secure authentication:
- Run
refineo login - A browser opens to authorize the device
- Sign in and confirm the device code
- Credentials are stored securely in
~/.refineo/
MCP Integration
Refineo provides an MCP server for integration with Claude Desktop, Cursor, and other AI assistants.
Tools Available
| Tool | Description |
|---|---|
humanize_text |
Transform AI-generated text into natural human writing |
get_usage |
Check remaining quota for current billing period |
Authentication Options
Option 1: API Key (Recommended for MCP)
API keys are long-lived (7 days to 1 year) and don't require refresh. Create one at www.refineo.app/dashboard/api-keys.
Option 2: Bearer Token
Use the CLI to get a short-lived access token (15 minutes). Suitable for quick testing.
Setup for Claude Code
Run this command (replace sk_your_api_key with your actual key):
claude mcp add-json refineo '{"type":"http","url":"https://www.refineo.app/mcp/mcp","headers":{"X-API-Key":"sk_your_api_key"}}'
Setup for Claude Desktop (Native OAuth - Recommended)
- Open Claude Desktop → Settings → Connectors
- Click "Add custom connector"
- Enter URL:
https://www.refineo.app/mcp/mcp - Click Add → Sign in with your Refineo account
No API key needed - uses OAuth authentication.
Setup for Claude Desktop / Cursor (API Key)
Alternatively, use an API key with the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"refineo": {
"command": "npx",
"args": [
"mcp-remote",
"https://www.refineo.app/mcp/mcp",
"--header",
"X-API-Key:sk_your_api_key_here"
]
}
}
}
Requires Node.js. Uses mcp-remote as a proxy.
Token Refresh
- API Keys: No refresh needed until expiry (7d-1y). Create new keys at dashboard/api-keys.
- Bearer Tokens: Expire after 15 minutes. Run
refineo loginto refresh.
Development
Node CLI
cd node
npm install
npm run build
npm start login
Python CLI
cd python
pip install -e ".[dev]"
refineo login
Links
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refineo_cli-0.1.2.tar.gz.
File metadata
- Download URL: refineo_cli-0.1.2.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d557e438e5e2b4f090b63cf757e30ac4b4ea7a9ddb54554e64c0e2d173929c11
|
|
| MD5 |
c3fdddb910e4dd109323eee5aeb215f6
|
|
| BLAKE2b-256 |
d5393868616989638537896b677abcc473d08b6a953f5750e2fedd9be8c20cab
|
Provenance
The following attestation bundles were made for refineo_cli-0.1.2.tar.gz:
Publisher:
python-publish.yml on DADAExperiments/refineo-ai-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
refineo_cli-0.1.2.tar.gz -
Subject digest:
d557e438e5e2b4f090b63cf757e30ac4b4ea7a9ddb54554e64c0e2d173929c11 - Sigstore transparency entry: 925756764
- Sigstore integration time:
-
Permalink:
DADAExperiments/refineo-ai-tools@b1f9e24c46dd42ad11b0f158c695e496724be8d3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/DADAExperiments
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b1f9e24c46dd42ad11b0f158c695e496724be8d3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file refineo_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: refineo_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733f4be4694fc41e7ea705b7387a7e7e4dbddb2e8206dc38942ae15961fc8e82
|
|
| MD5 |
5133c770a6a91cceb6971d9fa2cacdb8
|
|
| BLAKE2b-256 |
7f086cc1f4d17b99ad613630e5a721f591a024e34829210c4cbba35dc01bd777
|
Provenance
The following attestation bundles were made for refineo_cli-0.1.2-py3-none-any.whl:
Publisher:
python-publish.yml on DADAExperiments/refineo-ai-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
refineo_cli-0.1.2-py3-none-any.whl -
Subject digest:
733f4be4694fc41e7ea705b7387a7e7e4dbddb2e8206dc38942ae15961fc8e82 - Sigstore transparency entry: 925756765
- Sigstore integration time:
-
Permalink:
DADAExperiments/refineo-ai-tools@b1f9e24c46dd42ad11b0f158c695e496724be8d3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/DADAExperiments
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b1f9e24c46dd42ad11b0f158c695e496724be8d3 -
Trigger Event:
push
-
Statement type: