Files
The Files tab is a full file manager and code editor for your deployment.
Updated Dec 1, 2026The Files tab shows everything in your deployment, which is the folder /home/container inside its container. It has an Explorer on the left and an editor on the right. Database deployments have no Files tab, they use the Data tab instead (see Databases).
An empty deployment
A deployment with no files shows Add your code with four options.
- Import from GitHub connects a repository and can pull new commits automatically. See GitHub.
- Build with AI opens Studio, which writes the code from your description.
- Upload a zip or files opens the file picker. You can also drop files anywhere on the page.
- Deploy from your PC pushes a folder from VS Code or a terminal with the CLI (see below).
There is also a link to browse ready-made templates.
Browse and edit
- Click a folder to open it, and use the breadcrumb to go back. Switch between List view and Grid view from View.
- Click a file to open it in the editor. Several files open as tabs. A dot marks Unsaved changes. The editor saves with Ctrl+S and shows Saving…, then Saved.
- Binary files cannot be edited in the browser.
- Search files (Ctrl+K) opens a command palette to find a file or run an action by name.
- Pin to favorites keeps a file or folder in the Favorites list for quick access.
- Hide explorer gives the editor the full width.
Create and upload
Use the buttons above the explorer.
| Action | What it does |
|---|---|
| New file | Creates a file in the current folder |
| New folder | Creates a folder |
| Upload files | Picks files from your computer |
| Upload folder | Picks a whole folder, with its structure |
You can drag files from your computer onto the explorer. To upload a folder, use Upload folder, dropping a folder is not supported.
Each file can be up to 500 MB. If an upload is interrupted or a file is bigger, use SFTP or GitHub instead.
When an item with the same name already exists, the panel asks what to do. Keep both, Replace existing, or for folders Merge folders.
Actions on files and folders
Right-click an item, or use its Actions menu.
- Open, Rename, Move, Copy, Cut and Paste
- Download for a file, or a ZIP for a folder
- Delete
- Permissions to change the read, write and exec rights for owner, group and public (with the octal value)
- Get info to see the size, type, contents of a folder and the Path in the container
- Extract archive for archives
- Open in SQLite viewer for
.db,.sqliteand.sqlite3files
Select several items with their checkboxes to use the bulk bar. Move, Copy, Download (as one ZIP) and Delete selected. You can also drag items onto a folder to move them.
Deleting from the Files tab is permanent. Folders are deleted with everything inside. If you deleted something by mistake, restore it from Backups.
Archives
Uploaded archives (.zip, .tar.gz, .7z, .rar and others) stay as files until you extract them. Choose Extract archive, then the destination.
- Same folder as the archive
- Deployment root
- New sub-folder next to the archive, with a name you choose
- Or pick another folder from the list
The opposite also works. Select items and choose Archive selection to create an archive on the server, or Export all as ZIP to download every file at once.
Delete all files
Delete all files (in More actions) empties the deployment root, for example before a clean import. You choose whether to include hidden files, and you type the deployment name to confirm before anything is deleted.
SQLite viewer
Open in SQLite viewer opens a database file in the browser, with the tabs Data, Structure, Query and Info. It works on a copy of the file and is marked Read-only, so nothing you do there changes your bot's database. To change data, stop the bot and use your own code or a tool over SFTP. Back to files returns to the explorer.
Work from your own editor
Open in IDE shows how to link a folder on your computer to the deployment with the bot-hosting CLI. It needs Node.js 20 or newer.
npx bot-hosting login
npx bot-hosting link <deployment-id>
npx bot-hosting deploy --watch
loginasks for a key. Click Create a key for the CLI in the window and paste it. The key is shown once, it is limited to deployments, files and environment variables, and you can revoke it from Developer settings.linkconnects the current folder to the deployment.deploy --watchpushes every save and restarts the deployment. Without--watch, it deploys once.
Only the files you deploy are touched. Databases, logs and anything your bot writes on the server stay as they are. Your .gitignore is respected, so node_modules and .env stay on your computer, and a .bothostingignore file adds more rules. npx bot-hosting pull downloads a copy of the server files when you want one. Every command is described in The bot-hosting CLI.
Undo changes made by the AI
Changes made through the API, the AI assistant or Studio keep the previous version of each file they overwrite or delete, so they can be undone on request. Edits made in the Files tab, over SFTP or by your running app are not tracked this way, and deleted folders cannot be brought back except from a backup.
Permissions
The Files tab needs the Files permission. See Manage Access.