Configure local credentials. The platform injects them when the job runs.
Copy the script from the Local SDK setup modal in Less. The top of the file sets credentials for local development:
# LOCAL ONLY — the os.environ block below is for running on your machine.# When copying this script into Less, omit the os.environ section entirely.# The platform sets LESS_API_URL, LESS_API_TOKEN, and LESS_ASSET_ID for you.import osos.environ["LESS_API_URL"] = "your-less-api-url"os.environ["LESS_API_TOKEN"] = "your-script-api-token"os.environ["LESS_ASSET_ID"] = "your-python-asset-id"import lessless.reload_config() # pick up env if less was already imported# END LOCAL ONLY
Keep credentials out of the script you paste into Less. The platform injects LESS_API_URL, LESS_API_TOKEN, and LESS_ASSET_ID automatically when the job runs.
Env
Purpose
LESS_API_URL
e.g. https://app.example.com/api
LESS_API_TOKEN
script-api-token from the UI (expires after 24 hours)
LESS_ASSET_ID
Python asset id
LESS_JOB_ID
set only on platform runs
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/schema.json","name":"Less Documentation","colors":{"primary":"#2B8761","light":"#D3E5DE","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/less-51/_nkUlYbmupMdkWaS/logo/light.svg?fit=max\u0026auto=format\u0026n=_nkUlYbmupMdkWaS\u0026q=85\u0026s=7b4c41345a4767a0e4dcc153117e5cdf","dark":"https://mintcdn.com/less-51/_nkUlYbmupMdkWaS/logo/dark.svg?fit=max\u0026auto=format\u0026n=_nkUlYbmupMdkWaS\u0026q=85\u0026s=b46c408bd005242c95b372e50e40a229"},"favicon":"https://mintcdn.com/less-51/DwK7rO-p43iGpvTj/favicon.svg?fit=max\u0026auto=format\u0026n=DwK7rO-p43iGpvTj\u0026q=85\u0026s=4f17b2b181d9bf7d8a22dbfa978e5bff","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"}},"navbar":{"primary":{"type":"button","label":"App","href":"https://app.less.tech"}},"fonts":{"heading":{"family":"LessSans","weight":450,"source":"fonts/LessSans-4500.woff2","format":"woff2"},"body":{"family":"LessSans","weight":400,"source":"fonts/LessSans-400.woff2","format":"woff2"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"less-51","hasAudioNarration":false,"actualSubdomain":"less-51","customDomains":["docs.less.tech"],"gitSource":{"type":"github","owner":"lesstechrepo","repo":"monoless","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afabf2f213a1421d3856654","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Tools","count":106},{"language":"default","tag":"Guides","count":63},{"language":"default","tag":"Sources","count":42},{"language":"default","tag":"Introduction","count":28},{"language":"default","tag":"Canvas","count":26},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"New Columns","count":18},{"language":"default","tag":"Basics","count":14},{"language":"default","tag":"Utilities","count":14},{"language":"default","tag":"Destinations","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"python-sdk/credentials","slug":"/python-sdk/credentials","pageMetadata":{"title":"Set up credentials","description":"Configure local credentials. The platform injects them when the job runs.","icon":"key","href":"/python-sdk/credentials"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Configure local credentials. The platform injects them when the job runs.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Copy the script from the `,_jsx(_components.strong,{children:`Local SDK setup`}),` modal in Less. The top of the file sets credentials for local development:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# LOCAL ONLY — the os.environ block below is for running on your machine.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# When copying this script into Less, omit the os.environ section entirely.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The platform sets LESS_API_URL, LESS_API_TOKEN, and LESS_ASSET_ID for you.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LESS_API_URL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-less-api-url\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LESS_API_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-script-api-token\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LESS_ASSET_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-python-asset-id\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` less`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`less.reload_config() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# pick up env if less was already imported`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# END LOCAL ONLY`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keep credentials out of the script you paste into Less. The platform injects `,_jsx(_components.code,{children:`LESS_API_URL`}),`, `,_jsx(_components.code,{children:`LESS_API_TOKEN`}),`, and `,_jsx(_components.code,{children:`LESS_ASSET_ID`}),` automatically when the job runs.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Env`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LESS_API_URL`})}),_jsxs(_components.td,{children:[`e.g. `,_jsx(_components.code,{children:`https://app.example.com/api`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LESS_API_TOKEN`})}),_jsx(_components.td,{children:`script-api-token from the UI (expires after 24 hours)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LESS_ASSET_ID`})}),_jsx(_components.td,{children:`Python asset id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LESS_JOB_ID`})}),_jsx(_components.td,{children:`set only on platform runs`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Set up credentials","description":"Configure local credentials. The platform injects them when the job runs.","icon":"key","href":"/python-sdk/credentials"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"less-51","siteName":"Less Documentation","title":"Set up credentials - Less Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T08:31:05.636Z","originalFileLocation":"python-sdk/credentials.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Configure local credentials. The platform injects them when the job runs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Less Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set up credentials - Less Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure local credentials. The platform injects them when the job runs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Less Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.less.tech/python-sdk/credentials\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://less-51.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Set+up+credentials\u0026amp;description=Configure+local+credentials.+The+platform+injects+them+when+the+job+runs.\u0026amp;theme=35ce9a4e46576917f94960c8\u0026amp;signature=6bbc280fa5f5375100f6ff0de0f471413340922f512a910d2128848b14b762f1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set up credentials - Less Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure local credentials. The platform injects them when the job runs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://less-51.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Set+up+credentials\u0026amp;description=Configure+local+credentials.+The+platform+injects+them+when+the+job+runs.\u0026amp;theme=35ce9a4e46576917f94960c8\u0026amp;signature=6bbc280fa5f5375100f6ff0de0f471413340922f512a910d2128848b14b762f1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/less-51/avGVLV0RT2AIL5uY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Less Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2B8761\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.less.tech/python-sdk/credentials\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/python-sdk/credentials.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.less.tech/#organization\",\"name\":\"Less Documentation\",\"url\":\"https://docs.less.tech\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/less-51/_nkUlYbmupMdkWaS/logo/light.svg?fit=max\u0026auto=format\u0026n=_nkUlYbmupMdkWaS\u0026q=85\u0026s=7b4c41345a4767a0e4dcc153117e5cdf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.less.tech#website\",\"name\":\"Less Documentation\",\"url\":\"https://docs.less.tech\",\"publisher\":{\"@id\":\"https://docs.less.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.less.tech/python-sdk/credentials#webpage\",\"url\":\"https://docs.less.tech/python-sdk/credentials\",\"name\":\"Set up credentials\",\"description\":\"Configure local credentials. The platform injects them when the job runs.\",\"dateModified\":\"2026-11-16T08:31:05.636Z\",\"isPartOf\":{\"@id\":\"https://docs.less.tech#website\"},\"breadcrumb\":{\"@id\":\"https://docs.less.tech/python-sdk/credentials#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.less.tech/python-sdk/credentials#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://docs.less.tech/python-sdk/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up credentials\",\"item\":\"https://docs.less.tech/python-sdk/credentials\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.less.tech/python-sdk/credentials#article\",\"headline\":\"Set up credentials\",\"name\":\"Set up credentials\",\"description\":\"Configure local credentials. The platform injects them when the job runs.\",\"url\":\"https://docs.less.tech/python-sdk/credentials\",\"mainEntityOfPage\":{\"@id\":\"https://docs.less.tech/python-sdk/credentials#webpage\"},\"dateModified\":\"2026-11-16T08:31:05.636Z\",\"publisher\":{\"@id\":\"https://docs.less.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.less.tech#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Less Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Less Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/python-sdk/credentials.md","siteName":"Less Documentation","nav":{"global":null,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction"}]},{"tab":"Canvas","pages":[{"title":"Canvas","href":"/canvas/quickstart"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools/basics/input"}]},{"tab":"Sources","pages":[{"title":"Sources","href":"/sources/quickstart"}]},{"tab":"Destinations","pages":[{"title":"Destinations","href":"/destinations/quickstart"}]},{"tab":"Academy","pages":[{"title":"Academy","href":"/academy/introduction"}]},{"tab":"Python SDK","groups":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"zap","href":"/python-sdk/quickstart"},{"title":"Introduction","icon":"terminal","iconType":"light","href":"/python-sdk/introduction"},{"title":"Install","icon":"download","href":"/python-sdk/install"},{"title":"Typical workflow","description":"Develop locally, then run the same script on Less with scheduling and logs.","icon":"list-ordered","href":"/python-sdk/workflow"},{"title":"Set up credentials","icon":"key","href":"/python-sdk/credentials"}]},{"group":"Functions","pages":[{"title":"List Tables","description":"List tables available in Less as a pandas DataFrame.","icon":"table","href":"/python-sdk/list-tables"},{"title":"Read Table","icon":"download","href":"/python-sdk/read-table"},{"title":"Write Table","icon":"upload","href":"/python-sdk/write-table"},{"title":"Variables","icon":"variable","href":"/python-sdk/variables"},{"title":"Logging","icon":"message-square","href":"/python-sdk/logging"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Set up credentials - Less Documentation","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}