  We calculated, within the NRQCD factorization formalism, the leading
color-octet contributions to psi production in photon-nucleon and
electron-nucleon collisions. The expressions obtained depend on the NRQCD
matrix elements <O^{psi}_8(^1S_0)> and <O^{psi}_8(^3P_J)>. These matrix
elements can be determined by fitting to experimental data. The color-octet
contribution to psi photoproduction is in the forward region of phase space,
where there may be large corrections to the NRQCD result from higher twist
terms. As to psi leptoproduction we point out that the theoretical
uncertainties plaguing the photoproduction calculation vanish in the large
momentum transfer limit. In this region of phase space the NRQCD formalism
should be valid, making psi leptoproduction an ideal laboratory for testing the
theory.
