{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "smol-env-smol--run-smol-with-history-and-line-editing",
 "repo": "smol-env/smol",
 "repo_url": "https://github.com/smol-env/smol",
 "repo_slug": "smol-env-smol",
 "title": "Use Smol day to day with line editing and history",
 "page_title": "How to use Smol day to day with line editing and history with Smol",
 "summary": "Wrap Smol in rlwrap for arrow key editing and a saved prompt history, and run it in a sandboxed environment that has access to your endpoint.",
 "who": "A developer who likes minimal tools and wants to use Smol as a small daily terminal agent.",
 "problem": "The bare prompt has no line editing or history, and running model-chosen shell commands on your main machine is risky.",
 "outcome": "A comfortable Smol session with persistent history in ~/.smol_history, running somewhere where arbitrary commands are acceptable.",
 "steps": [
  "Install rlwrap with your package manager",
  "Set up a container or VM where the agent may run any command",
  "Put a small proxy in front that holds your API key, since Smol adds no credentials",
  "Run `rlwrap -H ~/.smol_history python3 smol.py http://127.0.0.1:8787/v1/responses`",
  "Or with Go: `rlwrap -H ~/.smol_history go run golf/smol.go http://127.0.0.1:8787/v1/responses`",
  "Exit with empty input or ctrl+d"
 ],
 "agent_prompt": "Write me a minimal standard-library-only proxy that keeps my API key outside smol and forwards requests to <provider> on 127.0.0.1:8787, then a docker run command that starts smol with rlwrap history inside a throwaway container.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Run it only where arbitrary shell commands are acceptable.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3 or Go",
  "An OpenAI Responses API compatible endpoint, such as a local proxy that adds your key"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/smol-env-smol/run-smol-with-history-and-line-editing/",
 "md": "https://dedupedai.com/use-cases/smol-env-smol/run-smol-with-history-and-line-editing/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/smol-env-smol--run-smol-with-history-and-line-editing.json",
 "api_version": "v1"
}
