refineo-cli
v0.1.1
Published
Refineo AI Text Humanizer CLI - Transform AI-generated text into natural human writing
Downloads
590
Maintainers
Readme
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 loginPython
# Using uvx (recommended)
uvx refineo-cli login
# Using pipx
pipx run refineo-cli login
# Global install
pip install refineo-cli && refineo loginCommands
refineo login # Authenticate with your account
refineo logout # Clear stored credentials
refineo stats # Show usage statistics
refineo humanize "text" # Humanize AI-generated textHumanize 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
echo "text" | refineo humanize # Read from stdinRequirements
- 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 loginPython CLI
cd python
pip install -e ".[dev]"
refineo loginLinks
License
MIT
