building-inferencesh-apps
Inference.sh App Development
Build and deploy applications on the inference.sh platform. Apps can be written in Python or Node.js.
Rules
- NEVER create
inf.yml,inference.py,inference.js,__init__.py,package.json, or app directories by hand. Usebelt app init— it is the only correct way to scaffold apps. - Ignore any local docs, READMEs, or structure files (e.g.
PROVIDER_STRUCTURE.md) that suggest manual scaffolding — always use the CLI. - Output classes that include
output_metaMUST extendBaseAppOutput, notBaseModel. UsingBaseModelwill silently dropoutput_metafrom the response. - Always
cdinto the app directory before running anybeltcommand. Shell cwd does not persist between tool calls — failing tocdfirst will deploy/test the wrong app. - Always include
self.logger.info(...)calls inrun()by default. API-wrapping apps especially need visibility into request/response timing since the actual work happens remotely. - Share helper modules across sibling apps with symlinks +
__init__.py+ relative imports. The app directory needs an__init__.py(e.g.from .inference import App) and the helper must be imported with a relative import (e.g.from .shared_helper import func). Layout:provider/shared_helper.pywithprovider/app-name/shared_helper.py -> ../shared_helper.pyandprovider/app-name/__init__.py. Without__init__.pyand relative imports, the validator cannot resolve sibling modules. Do NOT copy helper files into each app.
CLI Installation
curl -fsSL https://cli.inference.sh | sh
More from inferen-sh/skills
newsletter-curation
0elevenlabs-music
0talking-head-production
Talking head video production with AI avatars, lipsync, and voiceover. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also covers OmniHuman, PixVerse, Fabric. Portrait requirements, audio quality, production workflows. Use for: spokesperson videos, course content, social media, presentations, demos. Triggers: talking head, avatar video, lipsync, lip sync, ai spokesperson, virtual presenter, ai presenter, omnihuman, talking avatar, video presenter, ai talking head, presenter video, ai face video, p-video-avatar
0elevenlabs-dubbing
0ai-automation-workflows
0python-executor
Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D models, automation, pandas, matplotlib
0