DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a coding agent on your own model with Raw CLI

Start a working terminal coding agent on a local or hosted model in one afternoon.

Short answer: Run npm install -g @tlelabs/raw; then run raw config init to create the config file; edit the config so the local model model_id matches your installed model, or add your hosted model with api_key_env. All steps.

Authorization notice. Raw CLI is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA developer who wants a coding assistant that runs on a model they choose, after trying hosted tools and wanting control over tools and the model.

The problemWriting an agent loop with file editing, shell access and saved sessions from scratch takes time before the first useful answer.

The outcomeA configured agent that reads files, edits code, runs commands and answers questions about a repository from the terminal.

What you need first

  • Node.js 22.13+ on macOS, Linux or Windows 10/11
  • Bash for the bash tool (Git Bash on Windows, or PowerShell if Bash is absent)
  • A local model served over an OpenAI-compatible endpoint, or a hosted model with an API key
  • Comfort editing a strict JSON config file

Steps

  1. Run npm install -g @tlelabs/raw.
  2. Run raw config init to create the config file.
  3. Edit the config so the local model model_id matches your installed model, or add your hosted model with api_key_env.
  4. Run raw --agent raw "Explain the tests in this repository" from the project folder.
  5. Run raw alone to open the saved REPL and continue the work.

Prompt for your agent

Install the Raw agent harness from the repo lploc94/raw-cli, set up a configured agent on the model <model-id> at <base-url>, and run it with the task "Explain the tests in <repo-path>". Expected output: a plain-text explanation of the test files. Verify that the run finished with a model answer and no configuration error.

Caveat. Tool calls run automatically with your OS account's full permissions, and cwd is not a sandbox, so add tools.rules for risky commands before pointing the agent at sensitive folders.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for lploc94/raw-cli and "Run a coding agent on your own model"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer