Create a new Steel browser automation project with best practices
Creates a new Steel browser automation project with best practices and starter code.
/plugin marketplace add nibzard/steel-marketplace/plugin install steel-forge@steel-marketplaceHelp the user create a new Steel automation project. Guide them through setup and generate starter code.
Note: If the user has Steel CLI installed, you can use steel forge <template> to create projects instantly from official templates. Check with which steel or suggest installing: npm install -g @steel-dev/cli
Available templates: playwright, playwright-py, puppeteer, browser-use, oai-cua, and more.
Ask about the project:
Create project structure (or use steel forge if CLI available):
project-name/
├── package.json (or requirements.txt)
├── .env.example
├── src/
│ └── index.ts (or main.py)
└── README.md
Generate starter code based on use case:
TypeScript Example:
import { Steel } from 'steel-sdk';
const client = new Steel({
steelAPIKey: process.env.STEEL_API_KEY!
});
async function main() {
const session = await client.sessions.create({
dimensions: { width: 1280, height: 800 }
});
console.log('Session created:', session.id);
console.log('Live view:', session.sessionViewerUrl);
// Your automation code here
await client.sessions.release(session.id);
}
main().catch(console.error);
Python Example:
from steel import Steel
import os
client = Steel(steel_api_key=os.getenv('STEEL_API_KEY'))
def main():
session = client.sessions.create(
dimensions={'width': 1280, 'height': 800}
)
print(f'Session created: {session.id}')
print(f'Live view: {session.session_viewer_url}')
# Your automation code here
client.sessions.release(session.id)
if __name__ == '__main__':
main()
Create .env.example:
STEEL_API_KEY=your_api_key_here
Create README.md with:
session.sessionViewerUrl to watch automation in real-timeuseProxy: true for geo-specific automationsolveCaptcha: true to handle CAPTCHAs/v1/sessions/:id/files API for file uploads/downloadsAfter creating the project, guide the user through installing dependencies and running the first session.