Skip to content

[DOCS] Document the new ~/.infer layout - tmp media dirs and auth.yaml #689

Closed

Description

Summary

PR inference-gateway/cli#1239 (resolves inference-gateway/cli#1238) consolidates the ~/.infer/ layout in the CLI. The user-facing behavior changed, so the docs here should get a follow-up pass:

  • text_to_speech.output_dir, speech_to_text.recordings_dir and channels.telegram.media.dir now default to ~/.infer/tmp/{tts,voice,media} instead of ~/.infer/{tts,voice,media}. Explicit overrides keep working unchanged.
  • ~/.infer/auth.json was renamed to ~/.infer/auth.yaml (YAML, like every other hand-edited config file). The legacy JSON file is still read as a read-only fallback, so existing credentials keep working; users should move their keys to auth.yaml.
  • The whole ~/.infer/tmp tree is agent-readable/writable by design and /reset wipes it; the per-dir /reset appends for tts/voice/media were removed.
  • Existing installs need a one-time manual move (or deletion) of the old ~/.infer/{tts,voice,media} directories - they hold only disposable retained media. No automatic migration runs.

The CLI repo's own docs (directory-structure.md, configuration-reference.md, text-to-speech.md, speech-to-text.md, channels.md, README.md, examples/telegram-channel/README.md) are already updated in PR #1239.

Acceptance Criteria

  • Review the affected pages against the new defaults and confirm nothing was missed: configuration-reference, text-to-speech, speech-to-text, channels, directory-structure, README.
  • Any docs pages outside the cli repo that quote ~/.infer/tts, ~/.infer/voice, ~/.infer/media or auth.json are updated to the new defaults and the auth.yaml rename.
  • A short migration note for existing users (one-time move of the old dirs, rename auth.json to auth.yaml) is surfaced in the release notes or docs landing page.

Activity

  1. added
    documentation
    on Sep 18, 2026
  2. added theissue type on Sep 18, 2026
  3. edenreich commented on Sep 18, 2026

    @edenreich
    Contributor

    @claude Can you document this? check all the latest docs on the target repository first for all relevance. use /ponytail:ponytail

  4. inference-gateway-maintainer commented on Sep 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 3m 48s —— View job • docs/issue-689-20260918-1538 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-689-20260918-1538?quick_pull=1&title=Issue%20%23689%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23689%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the new ~/.infer layout

    • Read the upstream CLI docs (cli#1239, merged) for the exact new defaults
    • Found every page here quoting ~/.infer/{tts,voice,media} or auth.json
    • Updated defaults + the auth.yaml rename
    • Added a migration note for existing installs
    • Validated (lint:md, format:check, build - all pass) and opened a PR

    PR: #691

    What changed

    Page Change
    cli.md New Userspace tmp tree section: ~/.infer/tmp/{tts,voice,media} as the defaults of text_to_speech.output_dir, speech_to_text.recordings_dir, channels.telegram.media.dir; agent-readable/writable by design; /reset wipes the tree via the tmp parent; migration note for existing installs. auth.json -> auth.yaml everywhere (file table, resolution table, example converted JSON -> YAML, protected paths) with the legacy read-only JSON fallback called out.
    cli-text-to-speech.md output_dir default now ~/.infer/tmp/tts in the config sample, options table and tool reference.
    configuration.md Gateway provider-key fallback now names auth.yaml, legacy JSON noted.
    desktop.md App writes ~/.infer/auth.yaml; TTS asset-scope caveat now names ~/.infer/tmp/.

    Two things I verified rather than assumed

    • Desktop app: cli#1239's body flagged desktop as still owning auth.json, but [TASK] Refactor the provider key store to ~/.infer/auth.yaml desktop#282 is closed and backend/src/config.rs on main resolves ~/.infer/auth.yaml, so desktop.md is updated rather than left on JSON.
    • Desktop asset scope: the Tauri config already allows $HOME/.infer/tmp/**, so the moved TTS default stays playable in the app - the caveat's legacy ~/.infer/tts/** entry is still in scope and is mentioned as legacy.

    Not changed

    cli-speech-to-text.md and cli-channels.md - neither documents recordings_dir or channels.telegram.media.dir at all, so neither quoted a stale path. Adding those option rows would be new feature docs, outside this issue; say the word if you want them.
    | Branch

  5. moved this from Todo to In progress in 2026on Sep 18, 2026
  6. moved this from In progress to QA in 2026on Sep 18, 2026
  7. moved this from QA to Done in 2026on Sep 18, 2026
  8. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions